All Questions
0
votes
0answers
2 views
floppy disks only detected properly on same drive
On Linux (Debian based): If I copy files onto a floppy disk in an external floppy drive and put this disk later into another floppy drive, the disk output is … interesting. An excerpt:
actual ...
0
votes
0answers
2 views
Is it possible to expose a USB UPS via SNMPD?
I have a Rack Mount Cyberpower UPS I'd like to be able to monitor with LibreNMS. It only connects via USB.
Is it possible to have the Ubuntu Server running SNMPD expose the UPS MIBs?
0
votes
0answers
4 views
“GLIBC” can not be used when I have installed the gcc 5.1.0
When I have installed the gcc 5.1.0, I found lots of my softwares can not be used, such as firefox, gnome, they will give me a tip of "GLIBC_2.1X not found". Now the version of GLIBC is higher than ...
0
votes
0answers
4 views
How do I prevent the Keyboard Interrupt from being sent through the Screen program
I am making a python program, whose output (not input) can be viewed via the screen program. However, the problem is that doing this allows the user to turn off the program via the Keyboard Interrupt ...
0
votes
1answer
3 views
How to make CUPS show a USB printer as disabled when it is disconnected?
I'm using CUPS on an ARM single-board computer to share a USB printer over the network. To conserve power, the printer is usually powered off via a remote-controlled power outlet and only switched on ...
0
votes
1answer
13 views
bash read files into array and handle file not found
I am trying to read files from a directory into an array but even when the file doesn't exist, its saved in array. I want to exclude the file name if it doesn't exist.
a=(/tmp/nofileexists) ...
0
votes
0answers
7 views
Basic Troubleshooting steps for level 1 support team
I am writing a document for our level 1 support team that is primarily a windows team. I need to give them documentation on the basics on unix administration, a triage type of setup. What types of ...
-1
votes
0answers
14 views
Best way to obfuscate aix script
What is the best way to obfuscate shell script in aix?
The problem is that is a shared user and I would like to the other don't know the code
Thanks
0
votes
0answers
3 views
Incorrect keyboard mappings on RHEL v6.4
Spent a while trying to create keyboard shortcuts in terminal for command history access (up/down arrow keys). Realized after some frustration that this wasn't the issue - some keyboard keys are just ...
0
votes
0answers
8 views
Globally bind C-m to RET (preferably using Xmodmap)
I have learned to use C-m, C-i, and C-h in the terminal, and would like to bring over at least C-m to a global scale as I have yet to use it in many applications. Anyone know how to do this via ...
0
votes
0answers
4 views
Can't show application icon in panel using root privilege
I've written a little application and added it's icons to /usr/share/icons/
path..
when I run the application the desired icon appears correctly in the panel /I've cinnamon desktop/, but if I run it ...
0
votes
1answer
18 views
Can I automate SFTP to upload an entire tree?
Currently I am using SFTP to transfer .HTML and .JS files to my remote filesystem.
I have to type:
sftp [email protected]
And then manually change remote directory to /var/www/html, and upload ...
0
votes
1answer
10 views
How to burn the iso with wodim?
root@localhost:/home/debian# wodim -scanbus
scsibus0:
0,0,0 0) 'ATA ' 'MAXTOR STM316081' '3.AA' Disk
0,1,0 1) *
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 ...
0
votes
0answers
6 views
Transfering mp3 files from a remote server via cronjob to the RPi without overwriting
I succeded in transfering all files from a folder via ftp from a remote server to a raspberry, but I would like to transfer only new ones. Below is the working script i have.
#!/bin/bash -vx
ftp -in ...
1
vote
3answers
81 views
How can I make a bash script that determines if a program is already running
There is a python program I am making, and I am planning to have it launch via a bash script. However the program acts badly when the computer tries to launch it twice. Since I really only need this ...
0
votes
0answers
14 views
Shebang does not work in cron
I have a script containing:
#!/bin/bash
printenv
When I run it from the command line:
env testscript.sh
bash testscript.sh
sh testscript.sh
every time, it outputs SHELL=/bin/bash. However, when ...
0
votes
1answer
10 views
How to install Software Center on Kali Linux:
E: Package 'software-center' has no installation candidate
2 down vote
im try this add the repositories.
Edit /etc/apt/sources.list and add these two lines
deb http://http.kali.org/ /kali main ...
0
votes
0answers
12 views
font weight in emacs doesn’t work
There’s a font named Meslo. It’s a derivative work by Apple from Bitstream Vera Mono. I was picking it to try several times, but either the font itself was bad or emacs rendered it poorly. This ...
0
votes
2answers
23 views
Random sampling and outputting the largest value
I have a fairly large data set ~500 million rows. The data set looks like below. Col 1 is float number, col 2 is mac id(device id)
1616.93,ac:22:0b:a6:22:c3
2872.32,c0:bd:d1:36:bb:49
...
0
votes
1answer
33 views
Grep unix for a data to find out result
i have a file, contains huge data.
for example there is written "COST-> 1.00" line. and i would like to grep for example between 1.00 and 100. it includes both integer and string characters. how ...
0
votes
1answer
8 views
Log out goes to black screen
I've just updated my Debian to Jessie from Wheezy. I have auto login for my user and after logging out it goes to black screen. After clicking "Screen lock" nothing happens.
Any ideas ?
0
votes
0answers
10 views
ubuntu document reader for acrobat pdf forms
I have an acrobat pdf form that I need to fill. I am using ubuntu 14.04 trusty. Is there a reader that can handle this, the default (evince) doesn't seem to work.
thanks
2
votes
2answers
64 views
How to remove a file that can be seen but no program can seem to touch?
I'm trying to remove some obsolete backups, and deep inside one I've found a file 'cifs3bee' that I can find no way of removing. (And since I can't remove it, it's preventing the removal of the entire ...
0
votes
0answers
13 views
cpu temperature is higher than usual after installing xubuntu
I have installed Xubuntu 14.04 on Asus S550CB but the system becomes warmer than usual. So I tried to configure lm-sensors and saw cpu temperature is about 50 degrees. I guessed that some drivers are ...
0
votes
0answers
5 views
What is the difference between Uni1, Uni2, and Uni3 terminal font codesets?
I'd like to change my terminal font to any of:
/usr/share/consolefonts/Uni1-Fixed15.psf.gz
/usr/share/consolefonts/Uni2-Fixed15.psf.gz
/usr/share/consolefonts/Uni3-Fixed15.psf.gz
What is the ...
1
vote
0answers
30 views
How do I crash Ubuntu Linux 14.04 LTS deliberately?
I'm trying to crash an instance on AWS so I can simulate what happens when it gets 'stuck'.
I tried the top suggestions here How to cause kernel panic with a single command? but unforunately they ...
0
votes
0answers
6 views
List repositories from private docker registry
i need list/delete image and repositories to my private registry, i tried with:
docker search registry.mydomain.com
with result:
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
I have ...
0
votes
0answers
19 views
Remote Processing Power
I have 10+ hardware having pretty good configuration in terms of it's utilization. e.g. it has 2GHz processor and 2GB RAM just to run word,browser and few lightweight apps.
Since many machine's ...
0
votes
0answers
15 views
“Quit and restart” control code?
I find myself frequently (after making some change to source) "Ctrl+C;↑ ing" to restart the program with changes.
Is there a way to do this more quickly, without wrapping the program in a loop ...
0
votes
0answers
10 views
BootDevice Not Found
My system just crash and now whenever I try to boot up my system rather then ask me if I want to boot ubuntu or windows it tells me
BootDevice Not Found
Please install an operating system on your ...
2
votes
2answers
43 views
Interrupt bash infinite while loop with read
So, this is admittedly a contrived example and it comes as a result of trying to create a series of bash commands that can be executed in such a way that there is no way to resume control of the ...
0
votes
1answer
20 views
netstat pipe count host
Unix pipe problem: how to process multiline input to output the line and insert some piped processes.
echo "111 22222222" | awk '{print $1 " " $2 " " piped_processes_using_2nd_argument}'
A bit of ...
0
votes
0answers
10 views
lsusb shows USB devices that are not connected
I have the weird issue that lsusb shows USB devices that are not connected. We have a couple of devices connected via USB. To disconnect them from the system we disable the power to the USB port with ...
0
votes
0answers
13 views
Zimbra Bind IP address change
My client physically moved their CentOS 6.5 servers to a different data center with a new set of IPs. Before moving, they configured Zimbra 8.0.7 from Admin console with new bind address where they ...
3
votes
1answer
32 views
Pass 'typed text' from bash interactive shell to a command
The idea is to pass whatever the user has typed in a bash/zsh shell to a command when the user presses a keyboard binding|shortcut
For example : Lets say Ctrl+b is our binding
bind '"\C-b": ...
-1
votes
2answers
22 views
Not able to install any package or software on Linux 64-bit
I am using Linux RHEL6 and not able to install any package.
[root@linux6 Python-2.7.9]# uname -a
Linux linux6.4 2.6.32-358.el6.x86_64 #1 SMP Tue Jan 29 11:47:41 EST 2013 x86_64 x86_64 x86_64 ...
2
votes
1answer
13 views
Installing Postfix conflicts with MySQL-server package
I had to install MySQL Server community on our server (team lead did not want MariaDB due to support or something). Therefor I removed MariaDB which in turn also removed Postfix.
Now I need to ...
0
votes
0answers
29 views
How can I ignore errors in the ls command? [duplicate]
I have this command, that lists how many job files I have running
ls -las /var/www/data/forked/jobs/j*.job | echo "Jobs: $(wc -l)"
However, if there aren't any, it throws an error. What's the ...
0
votes
0answers
13 views
ffmpeg libass centOS 5.11
Hi i just got a vps server and it has CentOs 5.11 and kernel 2.6.18 and I need to install ffmpeg on it with --enable-libass. So I have tried to compile but I'm having problems with libass because of ...
0
votes
0answers
23 views
USB Disk Read-only, cannot format - Turn off write-protection
I have a USB disk which does not allow me to format/mount/unmount or created partitions on it.
Using dmesg | tail gives me the following result:
I found this post on AskUbuntu and tried using ...
0
votes
0answers
20 views
Adding stings in front of login
I am trying to add addition in front of the 'login' names that I usually see in my terminal.
Currently, this is usually what I am seeing, where 'zac' is my user alias and 'titem' is my machine name:
...
2
votes
1answer
14 views
Resource (CPU time and memory) limitation and termination of a process upon violation in Linux
The problem:
Given a process, limit the resources it and its child-processes can use. I.e. set CPU time and virtual memory quotas. When the process group exceeds one of the limits, terminate it, ...
0
votes
1answer
29 views
Matching “keyword value” pairs from semi-structured input
On occasion I get output from a command that includes "key value" pairs, with possibly more than one pair per line. As a repeatable example, consider the command ip addr show dev eth0:
ip addr show ...
0
votes
2answers
19 views
Replace fields in file inline
I have file (a.txt) with following contents:
Redhat master 12345678 V1A 20.0/20.0.1
Windows slave 12345678 V1B 19.0/19.0.1
I want to grep line with word master and replace 4th and fifth field with ...
1
vote
2answers
26 views
Sed Replace Around Numeric Content
I'm modifying an html output
<td nowrap align="right">4683</td>
I'd like to replace all occurrences in the document matching this pattern, where 4683 may be any given number varying in ...
0
votes
0answers
17 views
How can i use multiple if statement inside another if statement of a awk program?
I have a CSV File and i want to have multiple checks to retrieve the data from the CSV file. I have the following conditions which needs to be taken care of and i am trying to use awk in a shell ...
0
votes
0answers
4 views
Is it possible to run a Linux distro within a VM on Qubes OS?
In particular, I am considering running a minimal distro (maybe ttylinux) within Qubes. I understand that Qubes can run each OS component and application within a separate VM but how about an entire ...
0
votes
0answers
14 views
Is it possible to install Xen on a computer (processor supports virtualization) alongside Ubuntu and Windows?
The computer currently triple boots Ubuntu and a couple of Windows versions. Now I want to add Xen into the mix.
Would it work if I simply made a new partition for Xen, or does it need to take over ...
0
votes
1answer
3 views
Dell ePort Plus II (K09A002) not recognized under linux
The Dell ePort Plus II docking station is not recognized under linux (both Fedora 22 kernel-4.0.6-300.fc22.x86_64 #1 SMP x86_64 GNU/Linux and Ubuntu 14.04).
The bug is similar to the one reported and ...
1
vote
1answer
36 views
Delete files in /var/cache to save space [duplicate]
There is small space left on my file system , i want to delete files in /var/cache to save disk space . Are there some important files in the /var/cache which can't be deleted ,if there are,please ...