All Questions
0
votes
0answers
4 views
How to set `screen` environment variable from bash?
Background
I use virtualenv to switch between environments "1.0" and "2.0".
I use screen to manage terminals.
When I work on one environment I want all new screen windows to start with this ...
0
votes
0answers
10 views
Export multiple options in $GREP_OPTIONS
I use ZSH with "OH MY ZSH".
In "OH MY ZSH" variable $GREP_OPTIONS exports with multiple value:
$ echo $GREP_OPTIONS
--color=auto --exclude-dir=.cvs --exclude-dir=.git --exclude-dir=.hg ...
-1
votes
1answer
19 views
Grep Command not working inside script
Below command when executing as comand is working.. same while executing inside script not executing..
grep '^1' $Source_path/$File_name > $Target_path/XYZ_${Cntry_code}_RECTYP_1.dat
if am ...
0
votes
0answers
4 views
How to fix Module is Unknown error without logging in (PiLFS)
I've built a PiLFS distribution and was running it fine about a month ago.
Now, when I turn on the Raspberry pi and attempt to login as root with the proper password, it gives the error Module is ...
0
votes
0answers
5 views
SSMTP returns error 550
I have a Raspberry Pi with Raspian installed on it and I am experiencing troubles sending out emails.
I have installed SSMTP and usually inside my scripts I'm sending out emails to notify me when a ...
0
votes
0answers
7 views
Curl takes JSON file as input but not the content of a JSON file
I am uploading a JSON file using curl. I give the following in the command line as:
$ curl -v --header "Content-Type: application/json" -X POST \
http://site -d @test.json
where test.json is ...
0
votes
0answers
9 views
Create guest account with restricted access to applications
I'm trying to create a guest account in arch linux that only allows the user to use simple applications like firefox. I do not want them to have access to programs like terminal or grub-customizer ...
0
votes
1answer
15 views
Accessing Linux server via VPN or Certificate based ssh?
My company has a fairly common security setup where you need to log in via VPN, when outside the company network in order to get access to the servers. The biome is mostly Windows machines.
I'm ...
0
votes
0answers
6 views
sensors-detect not detecting my fan
sensors-detect detects my system perfectly:
# sensors-detect revision 6209 (2014-01-14 22:51:58 +0100)
# System: Acer Aspire E1-572 [V2.14] (laptop)
# Board: Acer EA50_HW
It detects an Intel ...
0
votes
2answers
13 views
Does installing a .deb or .rpm package always add a repository to one's system?
Installing Google's .deb or .rpm Chrome package adds the Google repository to one's system for automatic updates. Does installing a .deb or .rpm package always add a repository to one's system? If ...
0
votes
0answers
10 views
How to test RAID10 array performance
I have created a RAID10 array (near layout) with four 8 GiB virtual hard drives, making a 16 GiB array (/dev/md0 formatted as ext4). On the other hand, I have a 16 GiB RAID1 array (/dev/md1, also ...
1
vote
1answer
14 views
How to test an ethernet card?
I have a USB->Ethernet card that may or may not be somehow broken. The problem is I don't really know how to test it. I have a normal Ethernet port as well, so I can hook a (already tested) cable from ...
8
votes
2answers
168 views
Why did powering down my machine after a bad `rm` save my files?
Classical situation: I ran a bad rm and realized immediately afterwards that I had removed the wrong files. (Nothing critical and I had tolerably recent backups, but still annoying.)
Knowing that ...
1
vote
2answers
18 views
Ubuntu 12.04 constantly out of space [duplicate]
I am having this strange problem of my system running out of space constantly. Just yesterday I cleaned up near 15GB of space and today I see it is out of space. I really don't get it. I know some ...
0
votes
1answer
19 views
how to make a tmux window remain open after running command
I'm fiddling with tmux, trying to make it approximate the behavior I've had screen set up for to meet my quite modest terminal needs (I'm no programmer).
I just want it to start a couple of Bash ...
0
votes
1answer
11 views
External Hard Drive Issue on mac
After the cd /Volumes command when I type ls it shows me my hard drive name twice, with different permissions. After that when I try to use mkdir to create a directory in the external hard drive I'm ...
0
votes
0answers
6 views
character device file (rtai_shm) disappears under runlevel=5 in fedora9 (exists when runlevel=3)
I am trying to run Realtime (RTAI) on my Linux Fedora 9 machine. For that, it is needed to have a character device file, named rtai_shm, in /dev, that takes care of shared memory. I have made this ...
2
votes
2answers
85 views
How to “List Disk” in Linux
In Windows, all you have to type is "List Disk" using DisPart in a command prompt and it'll list all physical storage devices available, their size, format, etc. How do I do this in Linux?
1
vote
1answer
11 views
how do you include variables in Bind9 configuration files?
I am trying to create a auto install script since I have to do this installation task on multiple servers.
I have setup all the bind9 configuration files with my variables and thought it would have ...
1
vote
2answers
43 views
dd taking weeks
A few days ago, I got the message "Windows detected a hard disk problem".
I got a new hard drive, and booted into Ubuntu using a live USB. I started cloning the failing disk using
sudo dd ...
2
votes
1answer
23 views
Shell command works locally but does not get parsed correctly through ssh
If I execute the following shell command locally, I get the expected result:
adb -s 123456789 shell "su -c 'mount -o remount,rw /system;rm -r /system/app/MyApp.apk;cp /sdcard/MyApp.apk ...
0
votes
0answers
5 views
How to surpress audit daemon rotating log messages?
On a CentOS 7 system messages like these are logged several times a day:
Sep 24 00:11:42 example.org auditd[756]: Audit daemon rotating log files
Sep 24 00:26:23 example.org auditd[756]: Audit daemon ...
1
vote
2answers
39 views
Concatenate file contents AND names
I've been writing for many months. The files I create are dated files named like 2011-06-13.markdown with daily content. I've decided I want to have all the writing in one file instead but I'd like ...
1
vote
3answers
45 views
How to get the pid of a process and invoke kill -9 on it in the shell script? [duplicate]
I have an application server which we start by running this below command and as soon as we run the below commnad, it will start my application server
/opt/data/bin/test_start_stop.sh start
And to ...
0
votes
0answers
9 views
Cgroups unrecognised service
I'm running the following command, after having modified my version of /etc/cgconfig.conf but get the following error (I'm running Ubuntu 14.04). Does anyone have any idea why this is the case?
$ ...
1
vote
0answers
7 views
Debian systems seems to recognize speakers but not the headphones for lenovo laptops
First of All, I know there are lot of questions out there on same topic but still I could not figure out the solution. Being a average system level programmer (beginner in kernel programming) I would ...
1
vote
2answers
24 views
Using sed to find a word and replace another word
I have a word like "mode v" in a file. I want to replace it to "mode sv". However all my efforts failed as there is space after mode
1
vote
0answers
9 views
Two fdisks seeing different MBRs on same external drive (OpenBSD 4.2/5.5)
I'm trying to use an external USB hard drive to copy data between a legacy production OpenBSD 4.2 system (on a slow, fragile network — that's not an option) and a new OpenBSD 5.5 box, and I'm running ...
1
vote
1answer
25 views
LC_ALL: cannot change locale
When I log into my server (Debian 7) through PuTTY, I get greeted by a message saying:
-bash: warning: setlocale: LC_ALL: cannot change locale (en_GB.UTF-8).
Then, when I try to run almost any ...
1
vote
1answer
7 views
configure 4-way scroll
My MS mouse has 4-way scrolling feature and OS understands it perfectly.
But, for some reason, I don't need its horizontal scrolling. Is it possible to reconfigure horizontal scrolling to act like ...
0
votes
2answers
10 views
Cant use hombrew because of “bad cpu type one executable”
Here is my exact error message
Error: Bad CPU type in executable - otool
I can't run stuff like brew install wine
Any help please? I'm running OS X.
1
vote
1answer
32 views
du skip symbolic links
I cannot find an example of what I want to do and, from what I'm reading, the default behavior of du on my system is not the proper default behavior.
If I ls my /data folder, I see (removing the ...
2
votes
2answers
42 views
Why are my virtual consoles completely blank?
When I go from my graphical session to a virtual console by Ctrl + Alt + F i (with i in 1 - 7 and 9-12) I see a completely black screen. Only on F8 I see the GUI. Not even a blinking coursor on the ...
3
votes
2answers
108 views
login command not prompting for username/password
Under fedora-14 'login' command asks for username and password.
$login
login:
Password:
but with recent versions (Fedora19) 'login' command is not prompt for username/password, it Just hangs. ...
0
votes
0answers
9 views
How to check if the WPS button works?
I have tl-wn722n wifi adapter and the most important thing is that the device works well under my debian testing OS. But there's a problem with WPS button -- nothing happens after pressing it. I also ...
-2
votes
0answers
11 views
UNIX .vimrc settings not preserved after running Screen command
After the terminal window first appears, I run Screen to split the screen horizontally. I notice however that my settings for VIM in .vimrc are not "preserved". Is there a way to fix this? I am ...
2
votes
1answer
34 views
Automate chroot into broken system
Every time you have to mount a system with a live-boot-CD and chroot into the system to repair grub, you have to type so many lines to mount into the right partition:
fdisk -l
find the right ...
0
votes
0answers
6 views
No sound in Fedora 20 on Dell Latitude E5440
I installed Fedora 20 Desktop 64-bit on Dell Latitude E5440; however, there is no sound output in any application. I also tested the speakers through system settings and there is no sound again. How ...
1
vote
0answers
13 views
How to know disk space occupied by packages in OpenWrt?
I am trying to configure OpenWrt on my device and got out of space. I was downloading some tooling packages. Now how can I determine their weights so that decide what to uninstall?
Is it possible to ...
1
vote
1answer
13 views
Using pre-seeding and boot params for completely un-attended Debian install
I'm trying to use simple-cdd to create an complete unattended install of debian.
I have created a preseed file that gets used - but the installer is still asking me three questions
What is my region ...
0
votes
1answer
31 views
Form a relative path, going via a parent directory
My question is about relative addresses. I need to create a relative address that goes upwards, then sideways, and then downwards. Is this do-able? Or am I required to use absolute addressing? I ...
0
votes
1answer
25 views
How to gather byte occurance statistics in binary file?
I'd like to know the equivalent of
cat inputfile | sed 's/\(.\)/\1\n/g' | sort | uniq -c
presented in ...
0
votes
0answers
12 views
How can I show battery percentage at u-boot?
I am checking the battery level from my sensor and able to display a static 'low battery' or 'in charging' image.How or what approach should I take to show the level of battery percentage through ...
0
votes
0answers
8 views
How to change the default site hosted by the ip address of a linux plesk server?
I have a Plesk Ubunutu VPS that had until recently one domain setup. If I accessed the IP address of the server I see the site setup on the domain.
The problem is that I've now added a second ...
1
vote
1answer
61 views
Why are UNIX shells like this and how can I work around it?
One of the things I've noticed about BASH and other UNIX shells is that, by default and when used in typical ways, they spawn subshells for almost everything.
e.g.
foo=$(grep "someword" ...
3
votes
1answer
26 views
Why do I get an error when double quoting single quotes in a script that launches a remote SSH command?
I have this script:
port=$1
cmd=$2
ssh [email protected] -p $port "'"$cmd"'"
When running myscript.sh 1000 "ls /dev/shm" it get this error:
bash: ls /dev/shm: No such file or directory
In the ...
3
votes
0answers
31 views
Which file system (among XFS, BTRFS and EXT4 only) does provide the best data resilience to disk corruption? [on hold]
Question:
Given these three filesystems: XFS, BTRFS and EXT4, I'm wishing to
know which does provide the best data resilience to data corruption
in a setup without RAID. And, of course, why?
...
0
votes
0answers
10 views
Partition Tabling Not Working [on hold]
I'm trying to install Kubuntu but the installer just stalls and I was told I first needed to create partition tables. When I tried that with the KDE tool, I got:
Create a new partition table on ...
0
votes
2answers
24 views
how to remove the apostrophe and delete the space
I want to remove apostrophe from words such as in the word "duck's". I want to remove the apostrophe and the space left behind the apostrophe. I tried sed and I got "duck s" but what I want to get ...
0
votes
1answer
36 views
Changing my default directory in passwd changes my prompt
I don't understand what's happening in this scenario.
I changed the home directory of a user by editing the /etc/passwd file instead of using usermod -d. It worked: the default directory wasn't ...