All Questions
1
vote
1answer
10 views
Why does my while loop ignore the condition and keep going forever?
I have the following bash script which is supposed to record temperature data of my 2 cpu cores and send it to a file until the file is 10000 lines long, however the 10000 line while loop condition is ...
0
votes
1answer
11 views
How do I append/prepend a timestamp to grep output?
I am running a small linux server at home, and I am writing a script to log the temperature of the CPU cores every 5 seconds, but I need timestamps for it to be useful. So far I have something that ...
0
votes
0answers
3 views
CentOS gnome vnc required authentication of administrator
I followed this guide from DigitalOcean to install gnome for my CentOS 7 vps, and I got the gnome access with my user account with sudo privilege.
But the message pops up:
Authentication is ...
0
votes
1answer
9 views
I can't find the file stdio.h
I use VM and ubuntu to do my homework. After I decompress my file and run it, I find some error. To fix the error, I need to find the stdio.h and modify it. However, I can't find the files "stdio.h". (...
-2
votes
0answers
8 views
How much stable is Debian testing? [on hold]
Should i use as my main distro?,
Is more stable than Fedora stable?
0
votes
0answers
23 views
Way to remove newline (^M) from variables only, not from file
I am loading a file into variables, the problem is that the file is formatted in Windows, I believe, so I get a ^M instead of a newline.
How do I modify it when the value is in the variable? I am ...
0
votes
0answers
9 views
Mailx SSL/TLS handshake failed: Unknown error -5938
I have 2 Linux CentOS 7 machines, a Samba server and a Postfix server. The Postfix server is configured to use SASL authentication and TLS encryption. On the Samba server, I can connect to the Postfix ...
0
votes
0answers
18 views
rename file with path name
I have some files of type .csv but they are named differently. Ideally, I would like the script to find all files with .csv type and rename file using its path name.
Can someone help me restructure ...
0
votes
1answer
7 views
How to automatically open terminal window when I click a script?
My Python script has an interpreter in a first line. The file is executable. Is it possible that I click on my script and the terminal windows opens, executes the script and stays open?
Right now, ...
0
votes
1answer
9 views
Fedora 24 boot stops at “Starting Switch Root…” after disabling udev/udisks
I'm installing a new Fedora 24 system, and just for "fun", I ran this command:
systemctl -t service|grep 'loaded active running'| perl -anle 'print "systemctl stop $F[0]; systemctl disable $F[0]"' | ...
0
votes
0answers
2 views
RAID1 `mdX` looks O.K. on `/proc/mdstat`, but `blkid` and `fdisk -l` of the members report whacky/faulty values
I created a RAID1 with
mdadm --create /dev/mdX --level=mirror --raid-devices=2 /dev/sdb /dev/sdc
Then watched the first sync on /proc/mdstat. It says [UU]. So far so good.
sd[bc] were supposed to ...
0
votes
2answers
11 views
./Telegram:error while loading shared libraries
Does anyone know this error?
tar -x -v -f tsetup.0.10.19.tar.xz
telegram/
telegram/updater
telegram/telegram
cd Telegram
./Telegram
./Telegram:error while loading shared libraries: libX11-xcb.so.1:...
0
votes
0answers
12 views
Troubleshooting Linux Mint connection to internet browsers
I have problem connecting (same for wifi and ethernet) to internet via web browsers (chrome, firefox) via my home network (no problem when connecting at workplace). However, I can connect to internet ...
1
vote
0answers
15 views
Getting the version level of FreeBSD for a ZFS boot environment that is mounted but not booted
uname -v gives me the version level of the booted environment.
How can I get the version level of an environment without booting that environment?
In the example below, a boot environment (BE) is ...
-1
votes
0answers
7 views
can we create custom serde in hive using python [on hold]
Can we create custom serde in hive using python .I don't have a good knowledge on java . Is it possible?
0
votes
1answer
12 views
Preserve systemctl colors while redirecting to a file [duplicate]
My Linux server is running SystemD (RHEL/CentOS/Debian/Ubuntu...).
I would like to redirect the output of systemctl list-dependencies to a file, but I want to preserve the ANSI colors (red or green ...
1
vote
2answers
23 views
list subdirectory with some naming conversion
I want to write a script that will run a certain commands on my subdirectories with names containging or rather end with some strings, say, *-nom1, *-nom2, *-nom3. i.e.
for dir in $(subs)
do
// do ...
1
vote
2answers
28 views
How to merge two files with a common key in awk?
I have two files k1 and k2 and I am trying to merge both files based on the common key 'Name of Book'.
k1
John | Dreaming of Day | IEEEJournal
Akon | Dreaming of Night | ACMJournal
k2
Dreaming of ...
1
vote
0answers
17 views
Why does “systemctl start” ask for disk encryption password?
I'm installing Fedora 24 from scratch and writing it up at https://github.com/barrycarter/bcapps/blob/master/FEDORA/README
I've reinstalled many many times (and even tried CentOS 7 but gave up on it),...
0
votes
0answers
21 views
No IP address at boot
The wifi interface IP address is not set at boot:
$ 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
...
0
votes
0answers
7 views
Removing Grub from Windows 10 + Zorin Dual Boot
I'm having some trouble removing grub from my dual boot laptop!
I can't boot from the USB Windows media to access the terminal to type in the boot rec /fixmbr etc command.
It seems to be that Grub ...
0
votes
0answers
13 views
Fedora 24 switch from KDE spin to Default (GNOME)
I have installed the default workstation group
dnf install @workstation-product-environment
Now I want to remove all unnecessary KDE packages but
dnf remove @kde-desktop-environtment
gives me ...
0
votes
0answers
6 views
Linux Sees and Can Write to HDD but Windows Can’t [migrated]
I have 3 NTFS partitions on my 2TB Seagate HDD. Only recently, my drives have stopped being recognised in windows.
I can look in device manager with hidden devices turned on and see that the device ...
0
votes
1answer
17 views
record image effects as animations
I've done only some very basic stuff with ImageMagick (mainly resizing, also messing with color filters a bit).
Imagemagick has a simple example for overlaying images:
convert anthony_1.jpg ...
0
votes
0answers
20 views
Files in ram (tmpfs) representing a single-producer multi-consumer buffer
constraints: My system has 250MB RAM memory available. The amount of
data generated by the producer lies around 5MB/sec. I need to provide
a buffer of around 30 seconds. So around 150MB...
...
0
votes
1answer
10 views
Can I change the core icons - Raspbian Jessie
Is it possible to change the raspberry pi icons on boot startup
1
vote
1answer
14 views
Huawei 4G Hostspot (e5573s-606) not working in Slitaz(Linux based OS)
I was trying to connect my Huawei 4G Hostspot (e5573s-606) in Slitaz to connect via USB to the internet but it does not connect to the internet, rather, it mounts it as Removable Storage drive. On the ...
0
votes
0answers
35 views
Why are most daemons shared objects
On redhat most of the systemd started services are implemented as shared objects. Why is this the case?
For instance:
file /usr/sbin/sshd
file /usr/sbin/squid
file /usr/sbin/crond
file /usr/sbin/...
-1
votes
1answer
38 views
i cant rename a file
I am using the newest version of kali Linux running from a disc. I go to harddrive/ system32 and try to rename utilman.exe but the rename option when I right click is not blurred and is uncklickable.
...
0
votes
0answers
8 views
Better stream benchmark performance with Transparent Hugepages activated
on rhel 7, when transparent hugepages are activated, I get a better stream benchmark performance than when transparent hugepages are off.
Do you have any idea of a kernel parameter (or another thing) ...
2
votes
2answers
21 views
Replace values in certain section in a file
I have a file which have several sections, I have to change the values of all parameters in section [Test2].
Input:
[Test_1]
abc=123
def=456
.
.
.
so on
[Test_2]
abc=123
def=456
.
.
.
so on
[...
0
votes
0answers
12 views
crop and convert to pdf adds unwanted margin
I have a few PNG files that I want to print in a certain scale. For that I want to convert each of them to (DIN-A4 sized) PDF and crop into multiple pages. So far I've used this command:
convert -...
0
votes
1answer
14 views
Procmail error when piping body to php script
I have a procmail recipe that takes the body of a mail and sends it to a php script. However, procmail complains with an error.
Here is how it works:
The user that needs access to hardware parameters ...
0
votes
0answers
19 views
Get normal file from block device in Linux
In Linux, I can access a normal file as a block device with the loopback device, so I can mount it, access individual partitions, etc. But what if I needed to get a normal file from a block device, so ...
1
vote
1answer
25 views
Does dnf have an equivalent to apt's “build-dep”
something like
sudo apt build-dep apache
Supposedly installs all the dependencies needed to build apache from source (I've never used it before).
Is there an equivalent command for the dnf package ...
0
votes
0answers
24 views
Touchpad and keyboard not working
Today after turning on my laptop, running debian sid, the boot went normal.. I introduced the decrypt password and afterwards the username + password to login onto desktop. However when the desktop ...
0
votes
2answers
27 views
how to arrange your data in a way that missing values within a file don't affect the data? [on hold]
input file
BMN8400;12345;CMNP002;B123;GM
BMGN400;;CMBD600;;G2
BMD200;80088;;B808;G8
output file
BMN8400;12345;CMNP002;B123;GM
BMGN400; * ;CMBD600; * ;G2
BMD200;80088; * ;B808;G8
1
vote
2answers
14 views
Detect what driver is loaded for a UART connected chip?
I'm trying to detect what driver is responsible for providing the HCI interface for the Raspberry Pi 3 Bluetooth module.
Here is an equivalent of what I'd like to achieve but for a USB dongle.
user@...
0
votes
0answers
13 views
Linux to Windows remote desktop with GPU
i have to edit a video. The only problem is, that my editing program doesn't work on linux (HitFilm).
Now I have another workstation running Windows.
So I want to use this workstation to run, while I ...
0
votes
0answers
23 views
Pressing backspace shows ~ in mate terminal [on hold]
I am using the MATE Terminal on Antergos Linux. When I press backspace the terminal shows ~. In Firefox it turns on the debugger.
xev shows:
KeyRelease event, serial 37, synthetic NO, window ...
0
votes
0answers
6 views
`Unhandled Exception: System.ArgumentNullException: Value cannot be null.` error while running `dotnet run` using a startup script
I'm trying to run a dotnet app using dotnet run --configuration Release at system server Startup/Reboot. I'm using a init.d script to acheive the same.
My startup script, located at /etc/init.d/...
0
votes
0answers
8 views
What is a correct way to backup tree structure and file metadata of a partition?
I have disk with non-critical data on it (mostly movies, music, pictures, text files).
Data is not important enough for me to back it up. However I'd like to keep a backup of the "metadata", ie for ...
0
votes
1answer
16 views
Delete files 10 days older from hdfs
I am writing a ksh script to clean up hdfs directors and files 10 days older, I am testing the deletion command in terminal but it kept saying it is wrong:
command:
hdfs dfs -find "/file/path/file" -...
0
votes
1answer
20 views
Linux for simply one task: watch youtube
I have tested some linux versions for my kid laptop. Old Samsung notebook, Samsung N10.
I need do only one task, run youtube videos with no lags. Or setup a Android on it. I also tried RemiX-OS and ...
0
votes
0answers
11 views
Unable to use mail secure ports
In postfix and dovecot i am only able to connect to ports 25 (SMTP), 110 (POP3) and 143 (IMAP), others such as 465 (SMTPS), 587 (SMTP TLS), 993 (IMAPS) and 995 (POP3S) i am unable to connect with mail ...
0
votes
1answer
14 views
Shellscript curl gives error
I am trying to create a little shellscript using curl.
This is the script(i need to hide the username,url & Co.)
for i in `cat cain.txt`
do
uuid=$(curl -X POST -H "ACCEPT-LANGUAGE:en" -H "...
0
votes
0answers
13 views
How to create a new 3 tables by using 3 bash tables?
I have one scenario, which i described below, Please help me.
Is it possible to create 3 new hive tables, take the below 3 hive bash tables as a input.
3 new tables need to be update by using below ...
0
votes
0answers
9 views
How to install Oracle JDK and JEE in Fedora 24? [on hold]
I want to replace OpenJDK with OracleJDK and JEE.
0
votes
0answers
17 views
Hdd not seen in bios after installing Fedora
So I am currently having this issues : my hdd is not listed in the bios boot menu after installing Fedora in dual boot with Windows 10. To check if all the partitions are ok, I used the Fedora live ...
0
votes
2answers
24 views
Use nested var for substitute var
I've a big question today ! I've made a little exemple of my situation.
FOO="foo";
fooBAR="final";
var=${${FOO}BAR}
echo $var
I want to print "final". I tried all sort of things like ${${!FOO@}BAR} ...