Questions specifically about Linux, as opposed to Unix-like systems in general, or to questions about a specific distribution or program.

learn more… | top users | synonyms

0
votes
0answers
16 views

How do you check if a variable equals text in C? [migrated]

How do I check if a variable equals some text? For example: If I inputted "Hi" with scanf, then how could I check if the "Hi" was something else inputted. I made a program but it has errors. The ...
1
vote
0answers
10 views

Setting the video output for the framebuffer device

I'm working with Broadcom's 97356 device, which contains an HDMI and an analog video output device. I'd like to be able to draw stuff to one of those two devices (or both at the same time!) using a ...
0
votes
1answer
48 views

service command does not work in centos 7

I used to use service command for restarting, reloading, and checking status of service on centos 6.5 like below: $ sudo service nginx restart OK $ sudo service nginx status ...
0
votes
0answers
8 views

A question in ip_append_data [migrated]

I am confused with ip_append_data in linux network protocol stack when I see those codes: if (!(rt->u.dst.dev->features&NETIF_F_SG)) { unsigned int off; off = ...
0
votes
2answers
49 views

ClamAV found virus, if I should delete this virus? [closed]

ClamAV has found two viruses on my server. Is this a virus? Should I delete it? /tmp/back: Perl.Shellbot-8 FOUND /var/tmp/back: Perl.Shellbot-8 FOUND
1
vote
0answers
12 views

How do I conserve the userns UID/GID mappings when archiving an LXC guest?

I'd like to archive an existing LXC container that has been configured to run as unprivileged LXC container (see this question). How can I conserve all the file system meta-data that is used to store ...
0
votes
1answer
26 views

munin is not showing all Ethernet ports

I have an Ubuntu 12.04 running on a VmWare ESXi. I'm trying to run munin on the Linux system to show the status of the system. But in the network tab of munin only eth0 is shown even though ifconfig ...
1
vote
1answer
34 views

How to keep the VNC service running after reboot (RHEL 6)?

I have installed the vncserver related package and am able to access the desktop through the client. But on restarting the Linux machine, I am loosing the VNC session and again I am supposed to run ...
0
votes
0answers
31 views

Missing macros for VSYSCALL in Linux 3.16.4

I am running Arch with kernel version 3.16.4. I need to compile a kernel module for running Intel Vtune '13 (r17). GCC reports the following: ...
0
votes
2answers
36 views

How to start teamspeak server on reboot as specific user

Linux version on the server is Centos 7.0. Teamspeak server runs with this command: ./opt/teamspeak3-server_linux-x86/ts3server_startscript.sh start My server doesn't have 100% uptime. Therefore, ...
-4
votes
1answer
53 views

Need to automate file transfer from linux server to windows shared folder

We need to transfer files from a Linux server to a Windows shared folder. we don't have any Samba server. Can you please explain a better way?
0
votes
1answer
18 views

Postfix or mutt changes subject string

I suspect that when I send a message to my postfix server with Re: in the beginning of the subject I get the following view in mutt: The first message containg Re: looks fine. But if I resend ...
2
votes
2answers
40 views

What is best and secure way to save application settings?

Let's say I have an application which has plugins, daemons, etc. Now It has to save its settings and plugins settings as well as too. Most of all applications use users home folder for it but it is ...
1
vote
1answer
29 views

View timestamp for CUPS print jobs

I'm looking for a way to view the timestamp of a job in CUPS. I've searched the man pages and can't seem to find it. The long term goal is to have a script that parses the time from the jobID and ...
0
votes
3answers
41 views

Change login user account when accessing server through Putty

I am a very new systems administrator. I have been hired in as a junior and came from a Windows administration back ground. I have about one month of Linux experience. I have a lot of resources that ...
-2
votes
3answers
47 views

Displaying time in 12 hour format in OpenBox? [closed]

I have a version of Linux which lacks the ability to adjust the time format in a GUI. I want it displayed in my panel in 12 hour format Can I do this in bash? I am using openbox and sparkylinux.
0
votes
0answers
25 views

Best approach to adding a kernel driver

I have a task to complete. An LED must be controlled immediately after the kernel loads and into the launch of a Debian system. It also must be controlled in user land. I already have basic LED ...
0
votes
0answers
11 views

replace menu key with capslock and capslock with left control using xkb

I followed the instruction here by defining my own xkbsymbols (Use setxkbmap to swap the Left Shift and Left Control) partial modifier_keys xkb_symbols "replace_Menu_Capslock" { replace key ...
0
votes
1answer
56 views

Can't mount SD card - Wrong filesystem

Just bought a SanDisk microSDHC 8Gb card and tried to change the file system to ntfs (used cfdisk thru terminal). Couldn't mount the device. Tried to change back to FAT32, but still can't mount. ...
1
vote
0answers
52 views

RHEL 6.1 yum hangs on “Updating Red Hat repositories.”

I just registered my RHEL 6.1 system using rhn_register. However, when I try to run any "yum" command, it gets stuck on "Updating Red Hat repositories" and never does anything. BTW I can run this ...
1
vote
1answer
58 views

Why can't I see my file in RAM?

In nano, I created a simple text file named 'blue_pink_red_orange_green' with the following contents: red blue orange green pink I then opened the file again and did: sudo strings /dev/mem | ...
0
votes
0answers
10 views

BSPWM on OpenSUSE 13.1

Okay so I want to install BSPWM on OpenSUSE 13.1, I have herd good things about the environment the fact it can be customized while still been a very effective text environment. Reason I want this is ...
1
vote
0answers
28 views

How to create the framebuffer file node?

I'm working with a limited embedded device - Linux environment - that uses a custom DirectFB implementation to draw a user interface in its video output. I would like to exchange this method by a raw ...
1
vote
0answers
13 views

File path in audit log instead of inode number

When I do: echo "#TEST" >> /etc/passwd I get the following in audit logging: node=kayak.office.local type=SYSCALL msg=audit(1412687666.054:62033): arch=c000003e syscall=2 success=yes ...
6
votes
1answer
47 views

Cleanup trap for ssh command on multiple remote hosts

I want to execute an arbitrary command on multiple remote hosts using ssh. These commands are mostly long running commands that monitor server resources and aggregate the output to my local ...
1
vote
4answers
108 views

How to find IP address of device connected on the same network as PC based on MAC id

A PC and embedded Linux device is connected on the same local network.(We don't have DHCP server access, IT admin has the access). We also don't have access to debug UART on the embedded Linux board. ...
8
votes
1answer
369 views

Why do user space apps need kernel headers?

I'm building busy-box and iptables for an embedded device and one of the dependencies for them are the kernel headers. I have searched the whole file system for *.ko files and found none. So i ...
0
votes
1answer
31 views

How to write shell script on VMDK to derive configuration

I have several VMDK files and I would like to write a shell scripts to derive configuration (i.e. No. of CPUs, RAM, NIC, HDDs Size, No of HDDs, etc.). How can I do this, or where do I start?
2
votes
0answers
47 views

Update Corrupted GRUB; Can't Boot Right

Okay, I've been trying to repair my GRUB for awhile on my version of Lubuntu 14, and nothing seems to work. It seems that an update has broken my GRUB, so that now when I try to boot on the ...
0
votes
2answers
90 views

Which linux distro ships unaltered GNOME 3.1x

I tried the GNOME 3.14 promo DVD. Unfortunately it did not offer the option to install it. I would like to install the latest version of GNOME that ships in a Linux distribution, which I suppose is ...
0
votes
0answers
23 views

Zone Normal range in system with 4G RAM

I have a 4GB RAM in my system. Following is my BIOS provided RAM map. [ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009d7ff] usable [ 0.000000] BIOS-e820: [mem ...
0
votes
2answers
45 views

Howto Configure IPv6 on a Debian based system?

I realize this is probably a pretty basic question, but I can't seem to find an answer that makes sense to me. I have experience configuring networks for IPv4, but IPv6 is a whole other beast. I'm ...
2
votes
1answer
67 views

How to let a user create a directory although not create a sub directory

I'm trying to create a Bash shell script that allows for the transfer of files from a flash device to a archive in which the user will specify. Although I'd like to restrict this user from not being ...
2
votes
0answers
32 views

Advantages of using command line interface over GUI [closed]

I know its a simple question but what advantages does using a command line interface over GUI (graphical user interface) have?
1
vote
1answer
63 views

Unable to mount location after installing Linux Mint

I have been using Ubuntu for a while, but I decided to move to Linux Mint. I removed everything and clearly installed it. After the installation there are two parts which are File System and Toshiba. ...
0
votes
1answer
13 views

Bash - Need to make df output user friendly on login

I am trying to display the disk freespace to users when they login. Basically the output of df -h. I added this to .bash: echo -ne '\e[0;34m'"Disk: \e[m"$(df -h)"\n" It works fine & auto ...
4
votes
3answers
225 views

Can we hot-swap from one install of linux to another?

I have several separate installs of Linux on my machine, and reboot to whichever one is appropriate. I'm wondering if it is possible to switch from one to the other without a full reboot by doing ...
5
votes
2answers
178 views

sed + how to delete the second character “.” from the line

how to delete the second character "." from the line what I have is this ( but its remove the first "." from output uname -r | sed s'/\./ /' 2 6.18-164.2.1.el5PAE while I need the following ...
2
votes
1answer
84 views

Display power management in console

When in console (i.e. not in Gnome or KDE) the display will automatically power down in case of inactivity. It seems to me to be set to something around 30 minutes. This power management is completely ...
0
votes
1answer
57 views

rpm + where RPM installed the files/scripts PATH

I installed the following RPM file rpm -Uvh --repackage /var/tmp/bash-3.2-33.el5_11.4.i386.rpm warning: /var/tmp/bash-3.2-33.el5_11.4.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186 ...
1
vote
1answer
48 views

Daemon /etc/init.d message on Debian

When I start/stop/restart a daemon (eg. apache2), no message appears. I am on Debian testing (jessie). On my old server (Debian testing too), messages are displayed: root@old-server # ...
1
vote
0answers
30 views

How can I properly reload a kernel module?

Related Question I can't reload a kernel module for trying new flags. Example: thinkpad_acpi default is without fan_control=1. So if my computer runs really hot and the fans don't go to full speed it ...
1
vote
0answers
27 views

Copying files to a directory shared via ACL doesn't get default mask

I'm trying to setup a simple shared directory on an ext4 filesystem for a group of users to work on. Let's say i just need to give all permissions to all users belonging to the group "workgroup" to ...
-1
votes
1answer
73 views

Is there a tablet for programming in the market today? [closed]

I need a tablet that could do Python (CPython), Java, C, C++ (also embedding) programming. So suppose that I would use android arm tablet for that and install Ubuntu on it. What I don't know would I ...
0
votes
1answer
29 views

Allowing web server communication in Linux firewall

I have a unique situation. Let's say my webserver ( e.g. 10.0.0.2) is connected to eth0 of my firewall (gw 10.0.0.1). A local network (192.168.0.0/24) is also connected to eth1 (192.168.0.1/24) of my ...
0
votes
0answers
15 views

Mange the source code of kernel

If I download a kernel source tree and decompress it to get below directory: linux-3.13.9 I make a copy of it: cp -r linux-3.13.9 linux-3.13.9.orig, and then I modify one file and run a sequence of ...
1
vote
1answer
31 views

Ran php file contents in bash, could some commands be executed?

I accidently pasted this in bash as super user on production server. Now I'm eating nails. I looked through each line and most of them produce syntax error. But is there something evil that could ...
1
vote
1answer
21 views

Installing plugin to application running on Linux SUSE

I have an application running on a SUSE Linux Enterprise Server 11. A plugin is available which is installed by running an installation program (which unpacks, creates directories and registry entries ...
2
votes
1answer
31 views

Yum installation of package specific modules

I was playing around with texlive package recently and found out that there is a way to install tex style packages with yum install 'tex(package.sty)' command. I've never seen package name was ...
1
vote
0answers
17 views

What is the point of the second route lookup after OUTPUT?

According to the packet path diagram, and its description: Table 6-2. Source local host (our own machine) [...] Routing decision, since the previous mangle and nat changes may have ...