2
votes
1answer
66 views

What does “link#1” mean?

netstat -rn Routing tables Internet: Destination Gateway Flags Refs Use Mtu Interface default 75.126.68.49 UGS 7 1203 - pcn0 ...
6
votes
5answers
437 views

rename files in batch

During importing my music files from backup (thanks to default naming scheme of rhythmbox), I have messed up the file names. Now the looks like: 00 - American Pie.ogg.ogg.ogg.ogg 00 - American ...
1
vote
1answer
136 views

MAC Address changes after dirty shutdown

I'm having a strange issue which I originally thought was tied to the fact that I created an Ubuntu system from an image of another. However, after reinstalling Ubuntu from scratch I am getting the ...
0
votes
1answer
76 views

Edit apt.conf in Debian 7.1 for Intel 64 bit

Question: Does an end user need to edit apt.conf, if it does not exist? If so, how does one express the following fields in an Intel 64 bit architecture? Architecture Architectures as shown ...
1
vote
0answers
58 views

Different routing for each address on an interface

I know I can add several IP addresses to an interface without using interface aliases (ex.: eth0:0). My question: but how can I create different routing decisions for the different IP addresses on ...
0
votes
1answer
121 views

Supply additional ssh options in config file

How can I supply additional options in .ssh/config? I know that information like Host, Port, User etc. may be used in the ssh-configuration file to abbreviate ssh commands. I frequently create ...
0
votes
1answer
33 views

Are the crontabs of users linked?

Our Linux server has a community user that has a crontab for itself. The admins don't want me to schedule my scripts on their crontab because they don't want to take responsibility for my programming. ...
4
votes
2answers
7k views

What do the kernel parameters acpi_osi=linux and acpi_backlight=vendor do?

I had troubles with the screen brightness control in my laptop and I fixed it by adding the acpi_osi=linux and acpi_backlight=vendorparameters to the filegrub.cfg. I'd like to know what these ...
2
votes
1answer
4k views

Changing text color in c-shell

I can change the text color in the terminal permanently by adding this: export PS1="\e[0;31m[\u@\h \W]\$ \e[m" to the .bashrc file. Now I have to go into cshell, what is the corresponding way?
3
votes
1answer
6k views

/etc/environment not working

I am using Ubuntu 12.04. Recently, I accidentatlly removed python, causing a huge number of packages to be uninstalled. I reinstalled them, but now I am having problems. $ echo $PATH ...
1
vote
1answer
308 views

convert display to monochrome

My Asus netbook has Debian Wheezy. I came across a weird idea. How would it look if my display screen is monochrome. Is it possible to configure X11 to make the display monochrome?
7
votes
2answers
9k views

How can I make chrome (stop asking to be) the default browser?

I am running Linux Mint Debian edition (essentially Debian testing) and the Cinnamon desktop environment. Every time I launch google-chrome it asks to become the default browser. I have told it to do ...
0
votes
1answer
259 views

iptables - the meaning of “ERROR: No valid subcommand given”?

I've installed iptables on a embedded device with linux. I believe the installation was successful because all the other apps are working fine (busybox etc.). I try to run them but i get the ...
0
votes
2answers
709 views

How can I make beep sound through speakers(spdif)?

I want to beep through speakers. I'm using alsa through S/PDIF of ESI Julia. User is in the audio group. ls /dev/snd controlC0 midiC0D0 pcmC0D0c pcmC0D0p pcmC0D1c pcmC0D1p seq timer If I try ...
4
votes
2answers
2k views

Socket connect to a ports bound to IP vs localhost

It is my understanding that sockets bound to ports using localhost will not be visible to the subnet because the binding is not with the nic IP address. Local processes connecting to such port will ...
2
votes
1answer
619 views

iptables Port Forwarding — no service with the port

I have setup a network as in the image below: Firewall (FW) running CentOS 6 has two physical interfaces with subinterfaces: eth0:2 — 10.100.1.78/25 eth0:3 — 10.100.1.79/25 eth3 — 192.168.0.21/24 ...
0
votes
0answers
117 views

Issues with sharing partitions using NFS

We have 3 servers: Server1, Server2 and Server3, all in the same network. On Server2 I'm sharing a partition, say /part1, to Server 3 using NFS. Here's the /etc/exports on Server2: /part1 Server3(rw) ...
0
votes
0answers
233 views

Is there a difference between `command rspec` and `rspec`?

I want to call bundle exec rspec if Gemfile exists in current directory, and if it doesn't exists, call rspec itself. So I wrote like this. function rspec() { if [ -e 'Gemfile' ]; then echo ...
1
vote
3answers
316 views

vim avoid selecting underscore

So I know that an underscore (_) is considered part of a word in vim. Working with Python, I normally end up having a lot of underscores. Is there a way to select part of a word excluding the ...
0
votes
2answers
441 views

How can I access a NTFS filesystem from a live Linux CD

My Win XP SP3 registry is corrupted(my own fault) so I need to move windows/repair/system to windows/system32/config/system. I have tried DSL, Sliax? and tinycore. DSL give me a 'cannot - as ...
5
votes
2answers
990 views

Why do forked processes sometimes appear with brackets [] around their name in ps? [duplicate]

On a Linux system a C process is started on boot, which creates a fork of itself. It is not a kernal process or something. In most cases a ps -ef show both processes as expecxted, but sometimes it ...
5
votes
1answer
56k views

How can I create an SFTP user in CentOS?

I'd like to give temporary SFTP access to a support guy. How do I create an SFTP user? And how can I delete it once the job is done? Also, how do I specify a home directory for them? Can I prevent ...
5
votes
5answers
567 views

A shell script to write selected fields to a single line

I have a log file trace.log which prints the time stamp, thread name and Transaction method and transaction ID as below. 2014-01-23 15:50:41,724 [catalina-exec-35] INFO TRANSACTION getConnection ...
7
votes
2answers
2k views

renaming images to include creation date in name

When I look at the properties of an image, I can see the date the photo was taken in "Date Taken". When I edit the images (proprietary program) this data gets lost. How can I rename the image files ...
6
votes
2answers
545 views

how to add command line calculator to bash that uses comma as decimal mark?

How can I add a command line calculator to my bash? I have found some, but all of them use the full stop as decimal mark, but I want to have it to use the comma as decimal mark as most of the world ...
2
votes
1answer
11k views

What is i915.modeset=1 for?

I'm running Ubuntu 13.10 and since I upgraded to kernel 3.12.8 (build from source, including ubuntu patches) on a ivybridge video, the boot spash screen was flickering and messing up. So I googled ...
2
votes
2answers
731 views

Error launching Safari with PlayOnLinux

I've installed PlayOnLinux with the following commands: wget -q -O- http://deb.playonlinux.com/public.gpg | sudo apt-key add - sudo wget http://deb.playonlinux.com/playonlinux_precise.list -O ...
1
vote
2answers
2k views

Arch Linux slow shutdown

I'm suffering from a very slow shutdown/reboot with Arch Linux, so I followed the instructions given here to enable logging. So here is the log generated during (slow) reboot that unfortunatelly I ...
0
votes
1answer
416 views

create an alias that runs a command with string replacement from arguments [duplicate]

I'm trying to write a couple of shortcut aliases to quickly navigate to the httpdocs folders of the various domains and subdomains on my server. basically so I can type something like: $ pwd / $ # ...
2
votes
1answer
499 views

arrow keys are not working with terminal server telnet (termnetd) session

I am using terminal server package termnetd 3.2, which reads serial port and gives output on telnet port. I logged into terminal server port, every thing works fine except the arrow keys, Home and End ...
1
vote
1answer
129 views

Do programs access tools like grep, sed, tr, or sort due to their efficiency?

Or it's meaningful only when you are in the command line and want something simple done right away. Are these tools more efficient than a program library?
3
votes
1answer
202 views

How can the order of execution in the shell as it relates to redirection be upset about 1 time out of a 1000 on my system? [duplicate]

Considering this Q&A about the order of execution in the shell as it relates to redirection, and despite the fact that if a file doesn't exist it gets created first so that cat example.txt | shuf ...
25
votes
4answers
37k views

“su” with error “X11 connection rejected because of wrong authentication”

As root, I'm connecting to a remote host to execute a command. Only "standarduser" has the appropriate id-file and correct .ssh/config, so I'm switching the user first: su standarduser -c 'ssh -x ...
1
vote
3answers
4k views

Force ssh to not to print warnings

Is there a way to avoid ssh printing warning messages like this? "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\r", "@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @\r", ...
0
votes
1answer
98 views

Why date +3 equals 3?

Yes, this is a minor issue, but I wonder why date +3 outputs 3 Other options like: date -3 raise an error.
1
vote
1answer
846 views

What is the difference between red5 RC1 and RC2?

What is the difference between the red5 versions RC1 and RC2 ? and what does RC mean?
0
votes
1answer
765 views

service red5 restart FAILED

Works to start and stop but not to restart: -bash-4.1# service red5 restart Shutting down red5: [FAILED] It was all working before had to delete red5 and JDK and ...
0
votes
1answer
621 views

Adding Postgres bins to PATH: should I `export`? [duplicate]

I'm on a Mac, but this seems like a UNIX/Linux question. I just installed Postgres.app, and the documentation says to add the /bin directory that ships with Postgres.app to your PATH by adding the ...
0
votes
1answer
1k views

i3 Window Manager doesn't allow full screen videos on two monitors

I'm currently using i3 Window Manager on Debian Wheezy, and as soon as I open a video in fullscreen (a YouTube video for example), and switch over to my second monitor, i3 reduces the video back to ...
3
votes
1answer
472 views

What priorities can be used in cgroups net_prio module?

Cgroups has a module called net_prio, and by using this module I can set the priority of network traffic generated by various applications. As you can read here, this can be achieved by setting ...
2
votes
1answer
425 views

kill process in script while writing file behavior

in my php script which runs as a cron job, I have foreach($sites as $site) { exec('./wkhtmltoimage-amd64 ' . $site . ' somefile.png'); exec('./zopflipng -y somefile.png somefile.png'); } ...
1
vote
0answers
263 views

How to get back a lost session in RHEL : Using NoMachine

I logged in remotely to RHEL using NoMachine. Suddenly it got stuck and I have to close the NoMachine client. When I logged in again using NoMachine I can't see the old session (I can't see same ...
1
vote
1answer
2k views

can't wget rpm oracle on centos linux

Forgotten how I did this last time. Tried the following 2 methods that I thought had worked for me in the past: method #1 $ wget \ ...
36
votes
3answers
176k views

Timezone setting in Linux [closed]

I'm setting the timezone to GMT+6 on my Linux machine by copying the zoneinfo file to /etc/localtime, but the date command is still showing the time as UTCtime-6. Can any one explain to me this ...
1
vote
1answer
294 views

lxappearance, FreeBSD and normal user

I set pure Openbox desktop on FreeBSD 10 and I am usingn lxappearance for theme, font and icon changes. but if i do $ > lxappearance I can't install icon themes or GTK+ themes. if i do $ > sudo ...
0
votes
1answer
32 views

crontab nodification is taking too much time

There are 300 processes configured in a single Linux server's crontab. if I want to stop or modify any of them, I have to comment them out (i.e. # ..cron..) for all processes. It's a time consuming ...
1
vote
1answer
527 views

Redirection to services in NAT or Bridged Network only with one subdomain

I have one subdomain (dyndns). xyz.dyndns.com (f.e.) Here my question begins: I have a server for virtualisation. On the server I have multiple VMs where different web-services are available ...
1
vote
1answer
32k views

Uninstall JDK rpm to reinstall

Where do I find the JDK install to uninstall? @terdon had explained using an rpm type download so it would be easier to uninstall, but I cannot find it.
2
votes
1answer
3k views

Count number of elements in an array

I would like to ask if there is a way to count the number of elements in an array in ksh.
4
votes
2answers
528 views

What does `du - hb` do?

With du -bh I think I get the apparent size in human readable format: # du -bh 295K ./test However, I would expect the same from du -hb, but I get something else: # du -hb 301926 ./test I ...

15 30 50 per page