0
votes
0answers
13 views

What is wrong with the code?

#!/bin/bash for ((i=1 ;i<=3;i++)) do echo "Enter gallon used(gal):" read gal echo "Enter Miles Obtained(mil):" read mil mileage=`echo $mil / $gal |bc` echo "scale=4; $mileage " | bc c=`echo $c + ...
0
votes
0answers
4 views

Cannot compile device tree blob due to missing node/label

I'm trying to create a petalinux image using the petalinux SDK. After I start a build I get an error when the process tries to build the system.dtb The error is "(phandle references): Reference to ...
0
votes
1answer
12 views

Bash: increment a variable in a while loop?

Bash newbie here! I have a bash script that for each file in a set, greps each line in the file for a string. Then it splits the line on commas, converts the 7th element to a float, and increments a ...
0
votes
1answer
12 views

Where does pipe send its output?

I am new to using pipes and am still trying to figure out the logic of how they work. Based on reading several sources online, my understanding is that pipe in e.g., command1 | command2 sends the ...
0
votes
1answer
15 views

Using environment variables for shorter recipes in GNU Make

I would like recipes in GNU Make to use environment variables instead of command line arguments, to make them shorter, so that I can concentrate better on what changes in each command. For example, ...
-2
votes
2answers
14 views

Is it possible to create a virtual directory in Linux?

Like this way in Windows mklink /D Virtual_Folder_Here Real_Folder_Here. I was unable make work alias in Apache virtual sites in Windows so I made a virtual directory. Is this possible in Linux too?
-3
votes
0answers
8 views

what is the best edition and Instructions of Eclipse for team work and ssh-connect svn server?

I tried eclipse-parallel-luna-SR2-win32 and ptp-win32 base on this Instructions, it is useful but not enough for my case: I need to know how to get the source from the svn_server(Linux) in my local ...
5
votes
3answers
45 views

find | xargs shasum creates checksum of checksum file itself (prematurely) and fails when checking

My problem (in a script with #!/bin/sh) is as follows: I try to checksum all files in a directory for archival purposes. The checksum (in my case sha1) file with all filenames should reside in the ...
0
votes
0answers
15 views

Why is Debian's PS1 variable different from the other distros? [duplicate]

I've noticed that Debian's PS1 variable is a little different. For example: root@debian:~# echo $PS1 ${debian_chroot:+($debian_chroot)}\u@\h:\w\$ What is this part: ...
0
votes
0answers
7 views

Change CPIO format to newc without extraction

I am trying to create modify an u-boot filesystem image. At first I tried to extract, modify and then pack it again, but that didn't work, because extracting and repacking seems to mess up the ...
1
vote
1answer
40 views

GNU Find this but not that and do Sed?

Code find /tmp/ -type f \ \( -name "*.h" \) -o \( -name "*.cpp" \) -o \ \( \! -name "*.bak" \) -exec \ sed -i ...
0
votes
0answers
3 views

purge jboss log files using its instance path

I am using centOS server with two instances of JBOSS running in it. So i need a shell script to delete log files older than x days in each instance. for example: ps -ef | grep jboss i get two ...
0
votes
0answers
8 views

Snapper to only take snapshots if something has changed, or at a lower cadence

I'm using snapper for automatic timeline snapshots of my filesystem. The issue I have is that it continues to take hourly snapshots even when nothing on the filesystem has changed, which causes the ...
0
votes
0answers
10 views

How does rootfs.ext3 image file work?

I have a FriendlyARM mini6410 device and I have just hardly make it boot from sdcard. Now my sdcard uses "u-boot for mini" (u-boot.bin), "linux2.6.38 kernel" (zImage) and "rootfs qtopia fs" ...
0
votes
1answer
18 views

How do I get to know where a package came from?

On systems using apt: How do I get to know whether an installed package came from main, contrib or non-free?
1
vote
0answers
17 views

On what level is touch screen support implemented in Linux?

I'm trying to use a Linux OS on my tablet PC (Lenovo Thinkpad Helix 15). I tried Ubuntu, but except for switching and moving windows and bringing up the launcher, there doesn't seem to be a lot of ...
0
votes
0answers
7 views

RDP Application For Ubuntu To Debian

I would like to know if there are any prerequisite requirements that needs to be taken into consideration in order to remote desktop between different desktop environments. For example, on my Ubuntu ...
0
votes
0answers
17 views

LARGE_INTEGER and BYTE types in Linux?

I am studying one Windows code which converting to Linux and this answer here. It is possible that there are no injective datatypes between LARGE_INTEGER and BYTE in Linux so special situations may ...
0
votes
0answers
8 views

64bit Linux Mint on Dual Core Pentium 4 machine

I have a HP 530 desktop with a 3200Mhz Dual Core P4 processor, 4GB RAM and 1TB Sata HDD. I'm setup with Dual Boot Windows 7 and Linux Mint 17. Although Windows 7 64 bit loaded fine, Linux Mint 17 64 ...
1
vote
1answer
11 views

How can I fully remove a tablespace from MySQL?

I have a MySQL database called camera_main_live, which I administer using Adminer. It is, to all appearance, empty. So when I want to add some content, I begin by running this script (with Adminer set ...
0
votes
0answers
10 views

List of tmux commands

How can grep through list commands applicable to bind-key tmux.conf? I want to find a correct replacement for this line: 9 bind-key Home start-of-line .tmux.conf: 9: unknown command: start-of-line
1
vote
1answer
14 views

How to show a notification a la Growl to all Linux consoles

I'm building a textmode only linux netbook. I'd like to show information (like battery status) when pressing a hotkey, that would appear on top of whatever running program and disappear in a few ...
5
votes
3answers
203 views

Should I use a slash at the end of path variables in shell script or not?

Today when writing my shell script. A question suddenly comes to my mind. Since cd /target_dir and cd /target_dir/ both works. Should I add a slash at the end of my path variables in a shell script? ...
1
vote
0answers
8 views

Unable to login into Spark using static IP after port forwarding

I installed openfire in CentOS 6.4 server (IP address: 192.168.1.118) and I was able to login into spark using the server as 192.168.1.118. We want to use spark from outside, so I did port forwarding ...
0
votes
0answers
13 views

Setting up my Linux machine with multiple hard drives

I've recently made the switch to a copy of Elementary OS Freya (Ubuntu 14.04) and so far, really been enjoying it coming from a Windows background. After fumbling around a little, I got my 1TB Seagate ...
-1
votes
0answers
20 views

How can my bridge assign public ip to my users? [on hold]

I am using two machines - 1st has an IP of 10.10.10.10 and 2nd has an IP of 10.10.10.11. I will configure bridge on machine 2nd . I want to assign them an private IP of the range: 172.16.0.1-50. ...
0
votes
0answers
12 views

Is High Virtual Memory usage a problem or may cause problems?

In our server, we have a python based code that (simply) listen ports. The amount of Virtual Memory it uses is increased greatly with time Like: USER PID %CPU %MEM VSZ RSS TTY ...
1
vote
1answer
46 views

How to count the frequency of a word >20

Using exclusively AWK, I need to count the occurrence of a word only when greater than 20 characters. I've already found the way to count the frequency of a word, but I have some problems in setting ...
0
votes
0answers
9 views

blackscreen without backlight load

I have samsung np535u4c notebook with amd dual graphics. And my manjaro (arch based) randomly load on two state: normal & black screen without backlight. How to fix that? free amd drivers on board ...
-1
votes
0answers
10 views

unable to boot PC, grub recue [on hold]

i shifted partition in my PC having both Linux and windows. now on booting my PC it is giving command grub rescue and cant boot. i don't have CD drive. i tried different commands. but no help
0
votes
1answer
18 views

Java programs not running in terminal

I have java 8 installed on fedora 20. Any java program runs perfectly fine via eclipse but when I run the same program on terminal it reports an error saying 'could not load main class' . what could ...
-2
votes
0answers
23 views

excepted network issue, what type of system's problem reports by var/log/message? [on hold]

excepted network issue, what type of system's problems reports in var/log/message? if the system has shared memory problem or Queue problems f.g., is it reports in var/log/message ?
0
votes
0answers
11 views

Fedora 21 Samba Share Troubleshooting

I've recently upgraded my server's OS from CentOS 6 to Fedora 21. I understand there have been a bunch of new changes regarding the SystemV vs SystemD updates but I cannot get my Samba share to work ...
-5
votes
1answer
45 views

Shell script to get common elements from two files

My problem is as follows: I have two files in the following format: File 1: 1000 LSI Logic / Symbios Logic 0001 53c810 0021 53c1010 66MHz Ultra3 SCSI Adapter 1000 1000 ...
1
vote
1answer
12 views

nfs-kernel-server starts too early

I have an RPI-based NFS server with an external USB hard disk. After a recent upgrade to Raspbian 8.0 and systemd I noticed that now nfs-kernel-server seems to be starting before all file systems on ...
-3
votes
1answer
34 views

sed/awk - replace first occurance of a string with array of strings [on hold]

I want to find the first occurrence of a word and replace it by 3 strings using sed/awk. for example , I have the below entry in my /etc/hosts file 10.4.16.11 dispatch1 10.4.16.12 dispatch2 ...
0
votes
0answers
21 views

I installed linux. And it doesn't recognize usb keyboard and mouse

When I boot computer with kernel 2.6, I can use usb keyboard and mouse. But If I use kernel 3.10, It doesn't work. / / kernel 2.6 $ lsusb Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 ...
0
votes
1answer
18 views

What is the kernel command line to disable bluetooth in /etc/default/grub?

What is the kernel command line to completely disable bluetooth in /etc/default/grub? I don't have it, don't need it, don't want it, complete waste of resources.
0
votes
0answers
4 views

Application started in /etc/X11/xdm/Xsetup can't receive key presses

I'm using xdm (and I'd like to keep it that way) for a project and I need a terminal to run a script before the login prompt. The script requires some user input, however, it doesn't seem to work. ...
0
votes
0answers
6 views

Docker: personal ip but another network

Recently i found this for give to docker a "personal" ip ip addr del 10.1.1.133/24 dev eth0 ip link add link eth0 dev eth0m type macvlan mode bridge ip link set eth0m up ip addr add 10.1.1.133/24 dev ...
0
votes
0answers
6 views

Run program under conky

I would like to have a webpage as a background so i use a custom python browser. But my conky is now running under it. How can i ask my program to stay under conky ? Or ask conky to stay above it ?
1
vote
1answer
25 views

How Can I Install Another Desktop Environment In Debian?

I tried to install Unity, and the Lubuntu desktop environment, but all I got as the result was this: > Reading package lists... Done Building dependency tree Reading state information... ...
1
vote
0answers
17 views

Gnome Terminal Colors not displaying correctly, Vim too

Gnome Terminal Monokai Theme (Colors are wrong) I downloaded the Monokai theme and my blues and greens are clearly off. Gnome Terminal Monokai Theme Vim Issues Also I am using 256-grayvim theme ...
2
votes
1answer
53 views

Is possible to remote mount an image, that can boot and install itself?

I have a remote server, which runs Linux. I would like to install remotely the OS image, in case that it gets corrupted (this has already happened twice while I am experimenting with the OS). So far, ...
0
votes
3answers
127 views

is there a way to run a linux binary on OS X

Is there a way to run a linux binary in OS X? I tried to run a binary but it said it isn't executable.
0
votes
2answers
35 views

Why Are There Three Processing Running For One Script?

I have the following line in crontab. @reboot /usr/bin/teamspeak3-server_linux-amd64/ts3server_minimal_runscript.sh When I reboot, the script runs (i.e. my Teamspeak 3 server starts) in the ...
0
votes
1answer
11 views

dsniff not showing

How can I check a package? I installed dsniff and I can't access any of it's tools from terminal. I type arpspoof and nothing. Tab key doesn't autocomplete. Dsniff is installed using sudo apt-get ...
0
votes
1answer
37 views

Using nano to edit a crontab [on hold]

I haven't been able to get crontab to execute any of my scripts on start-up. I want to know why it doesn't work. Below is an example of me trying to use it, and I've tried to provide as much ...
0
votes
1answer
36 views

Batch move all files from subdirectories to parent directory, but files have same name

I have many files in sub-directories that I would like to have all moved to the parent directory. Ex: 20150530XXXX/1.jpg 20150530XXXX/2.jpg 20150530XXXX/3.jpg 20150530XXXX/4.jpg 20150531XXXX/1.jpg ...
0
votes
0answers
6 views

btrfs how to move submolume to another disk

I've got 4 drives in my server: sd{a,b,c,d}. All of them are in a raid1 system. 2 of those drives, sd{b,c} are completely empty. RAID1 will only make one copy of a file on a different drive. So it ...

15 30 50 per page