Questions tagged [lsb]

The Linux Standard Base (LSB) was created to lower the overall costs of supporting the Linux platform. By reducing the differences between individual Linux distributions, the LSB greatly reduces the costs involved with porting applications to different distributions, as well as lowers the cost and effort involved in after-market support of those applications.

55 questions
7
votes
3 answers

How to execute the CMU binary bomb in Ubuntu Linux?

I'm trying to do CMU's binary bomb as an independent project to learn some x86 Assembly and reverse engineering. (It's not an auto-graded version tied to a class.) I downloaded bomb.tar from http://csapp.cs.cmu.edu/public/labs.html. From CMU's lab…
Seaver
  • 419
  • 1
  • 5
  • 10
7
votes
3 answers

Extract LSB bit from a Byte in python

I have a byte in variable 'DATA'. I want to extract the LSB bit out of it and print it. I'm very new to python, I found many articles with complex bitwise addition logic and all which was very tough to understand. I'm looking for a simple logic like…
3lokh
  • 891
  • 4
  • 17
  • 39
6
votes
2 answers

Is the Shebang (#!) standardized?

Is the Shebang #!, e.g. #!/bin/sh in front of script executables officially standardized in the Linux Standard Base or in any of The Open Group standards or elsewhere? If yes, please provide references and details. NOTE: I'm most interested in its…
jotik
  • 17,044
  • 13
  • 58
  • 123
4
votes
3 answers

Systemd unit, check status with external script

The short version is: I have a systemd unit that I want to check the return code of a script when I call: systemctl status service.service Long version: I had a lsb init script that did exactly that, when status was passed as parameter it called a…
jteichert
  • 527
  • 1
  • 4
  • 20
3
votes
2 answers

Create binaries that run on "all" Linux distrubtion

I know this question was probably asked a million times, but none of the questions have the answer with a how-to practical application and no one can explain what I'm going to show. So, here's the problem: There are many software vendors that…
The Quantum Physicist
  • 24,987
  • 19
  • 103
  • 189
2
votes
1 answer

How to implement invisible watermark image in image using 3 LSB

I need to implement 3 LSB watermarking without using the existing functions in MATLAB. I need my function to get 2 images, both gray-level, and preform watermarking using 3 LSB. I tried the following, but the result of the original image subtracted…
Kobi
  • 23
  • 4
2
votes
1 answer

What does the extra 0 added to the LSB in Modified Booth Algorithm do?

I have tried to find a answer to this question but the only other thread about it didn't give as much details as I wished for. Why is the extra 0 to the right of the LSB needed in Modified Booth Algorithm? What exactly does it do and why does it…
Laha
  • 39
  • 5
2
votes
2 answers

C# Changing Least Significant Bit Image Algorithm

I am trying to hide a string of text into a bitmap using the LSB algorithm, which is replacing the least significant bit of the RGB Values for each pixel. So far I have loped through the pixels of the image and cleared the LSB value for each pixel.…
2
votes
3 answers

Why does platform.linux_distribution() returns different results on one OS?

I have 2 versions of python installed on some virtual machine 2.7.9 and 2.7.6. 2.7.6 is installed from system package while 2.7.9 is installed from sources. This machine is running on Ubuntu 14.04. I wanted to use platform module to get information…
running.t
  • 5,329
  • 3
  • 32
  • 50
2
votes
0 answers

LSB init service dependency

I have added the two services A and B. B is dependent on A means if i will start B then A should be start automatically if it is not running already. But A is not coming up automatically when i am starting B. Can you please tell where am i wrong ?.…
jsingh
  • 21
  • 3
2
votes
1 answer

C#: Left Rotation Algorithm for different Bit Numbering Schemes

So I have the following RotateLeft algorithm in C#: public static ushort RotateLeft(ushort value, int count) { int left = value << count; int right = value >> (16 - count); return (ushort)(left | right); } Does…
Eric Bergman
  • 1,453
  • 11
  • 46
  • 84
2
votes
2 answers

'lsb_release -a' prints an additional line while using it in bash script

I am writing a bash script which has a subtask of printing the Ubuntu name on which the system is running. I did: ubuntu_ver=$(lsb_release -a | grep Description | cut -d":" -f2) echo $ubuntu_ver Ubuntu 12.04 LTS got stored in variable ubuntu_ver…
nishantsingh
  • 4,537
  • 5
  • 25
  • 51
2
votes
2 answers

I am not able to install google chrome in my oracle enterprise linux

I have created a google.repo file and stored the file in yum.repos.d, the contents of google.repo are : [google-chrome] name=google-chrome –…
Dexter
  • 12,172
  • 9
  • 27
  • 30
2
votes
1 answer

How to get local IPv6 addresses (LSB compliance)

ioctl does not work with IPv6. getifaddres - unsupported by LSB netlink sockets - unsupported by LSB Any ideas?
Yury Bushev
  • 642
  • 9
  • 25
1
vote
1 answer

lsb_release: command not found on Ubuntu 20.04

Hello I'm trying to install postgreSQL on Ubuntu 20.04, but when I exexute the very first command in order to create file repository configuration: $ sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" >…
Danel
  • 21
  • 1
  • 3
1
2 3 4