0
votes
0answers
20 views
Gentoo framebuffer dual monitors
I have Gentoo and great frame buffer with smaller fonts and great resolution, also I have two monitors.
On both monitors I have same frame buffer. Is it possible to have multiple different frame ...
2
votes
0answers
37 views
dhcpcd can't startup at boot
when I run dhcpcd after boot everything works fine but when I try to add it to auto start systemctl enable dhcpcd@eth0.service, after each boot it's inactive
dhcpcd@eth0.service loaded ...
0
votes
1answer
41 views
Recommended Linux distribution for statistics? [closed]
Given that R, Python and many other open source libraries used for stats have better support in Linux than Windows/OSX (rPy comes to mind), I find it odd that no one has asked this question before. So ...
2
votes
2answers
32 views
A secure way to confine FTP login users to a single directory
I needed to provide multiple users FTP logins, some able to write, some only to read, to a single FTP root directory. I very much wanted that they not see of the file system anything above that ...
2
votes
0answers
26 views
Including pending update list in motd
How would you include the list and / or count of pending updates in the welcome banner?
Eg.
username: User
password: *****
Hi 'User', welcome on 'localhost'
There are 8 pending updates, you need to ...
1
vote
2answers
32 views
SSH agent loses keys after logging out
I added my SSH key having typed
ssh-add ~/.ssh/id_rsa
and ssh-add -l printed my key. But after logging out and logging in again I see
The agent has no identities.
I've tried setting a very ...
0
votes
0answers
19 views
Getting “zsh: command not found: time” when running `time` in subshell
I installed ZSH (and Oh-My-ZSH) on a Ubuntu 12.10 64 bit machine a few days ago. I just tried to do:
time (time ls)
and got this error:
zsh: command not found: time
( time ls; ) 0.00s user 0.00s ...
0
votes
1answer
20 views
Can't install Linux Headers on Debian 6
I don't understand why this isn't working (I'm stumped!);
root@box:/home/user# apt-get install linux-headers-2.6.32-5-686
Reading package lists... Done
Building dependency tree
Reading state ...
0
votes
1answer
20 views
UUOC with ssh file transfer
Just wondering; is it possible to skip the cat in
some_command | ssh remote 'cat > outputfile'
? It feels like a UUOC.
2
votes
1answer
27 views
Problem in Joining RHEL with Windows 2008
I configured Domain on my test machine (Win2k8) and domain name is win2008ad.local and computer name is win2k8. So the full name is win2k8.win2008ad.local.
I installed packages on RHEL 5 related to ...
2
votes
2answers
59 views
Linux listing files between two date without touch command
I need a command which will list the files between given date and time (YYYYMMDDHHMMSS - format) in to a text file.
I don want to use touch command as its creating permission issue.
I am new to this ...
2
votes
3answers
61 views
Where do I find a list of terminal key codes to remap shortcuts in bash?
For example:
"\e[1;5C"
"\e[Z"
"\e-1\C-i"
I only know bits and pieces, like \e stands for escape and C- for Ctrl, but what are these numbers (1) and letters (Z)? What are the ;, [ and - signs for?
...
0
votes
1answer
82 views
Unable to set hostname for use within network
I am having a lot of trouble setting up a hostname for my home server for use within my home network. My home server is running Ubuntu 12.04 LTS and all packages are up to date. Management of this ...
2
votes
1answer
23 views
How can i find the correct name using aplay, or pacmd or something else for my microphone and sound out put, to apply in asound.conf?
I need to write a deafult mic and default speakeroutput in the asound conf file. But i dont know exactly how do i find my external sound card or microphone devices name? So that on reboot or ...
2
votes
3answers
57 views
| Grep, Find which file the strings came from
I have a set of PDFs, and I am running
strings * | grep message
This returns the strings containing that method, is there anyway I can get grep to tell me which file it is from?
1
vote
1answer
22 views
How to change the Linux Nadia splash screen?
I was wondering if it is possible for me to change the spash screen when Linux Mint is loading? I am talking about the logo of mint which apprears when you start the computer. If so what kind of file ...
0
votes
0answers
17 views
System Proxy Settings [duplicate]
I'm troubled by many types of proxies setting.
Currently I configure proxy on many places, and if I switch environment I have to unset proxies on same places.
What I have to change
Environment ...
1
vote
2answers
22 views
Variable scope in multiple pipes
I was trying to do something following,
find . -name "*.dat" | get the basename of file | move filename returned by first command to basename returned by second command
To give a concrete example, ...
-1
votes
1answer
34 views
disabling root permissions [closed]
From Linux From Scratch build a minimal system for running my application. but struck on disabling root permission.
Need my minimal lfs as ubuntu.
when ubuntu boots login-screen displays when we ...
0
votes
0answers
12 views
init:network-interface (lo) pre-start proc (664) terminated with status 1
Ubuntu server 10.04. I modified the file /etc/network/interfaces. Restarted the system.
system startup errors:
init:network-interface (lo) pre-start proc (664) terminated with status 1.
...
1
vote
1answer
28 views
upgraded to Ubuntu 13.04 Server, do-release-upgrade still shows
I upgraded my server to Ubuntu 13.04 Server a while ago. However, the notice that tells me there's a New Release '13.04' available. Run 'do-release-upgrade' to upgrade to it. still shows. Obviously, ...
4
votes
3answers
40 views
Commandline global proxy program?
I'm living in China, and lots of web service is not available or stable here like Github/Bitbucket/Imgur, When I'm using wget, git or some other commandline tools, I need using a proxy.
Is there any ...
1
vote
4answers
58 views
What type of permissions should a user's home directory and files have?
I'm working with a fresh install of Ubuntu 12.04 and I've just added a new user:
useradd -m testuser
I thought that the -m flag to create a home directory for users was pretty standard, but now ...
3
votes
1answer
21 views
Emacs: make portion of buffer readonly
I sometimes edit files in emacs where portions of the file are
documentation or something else that shouldn't be edited, and another
portions are "play areas" where I'm free to edit and create new ...
4
votes
1answer
31 views
What do use the -t “tag” option for in logger?
When using the "logger" command to write messages to the system logs from scripts, I use the -t "tag" to store the scripts name along side the message it's written to the log.
I do this to make ...
1
vote
2answers
32 views
Why there are two ifcfg-eth0 file but in different directory
I am trying to understand why there are 3 ifcfg-eth0 on my CentOS 6.4 server, they are hardlinks to the same file looks like.
Anyone knows why ?
$ ll /etc/sysconfig/network-scripts/ifcfg-eth0
...
3
votes
3answers
83 views
How can I display octal notation of permissions with ls - and can octal represent all permissions? [duplicate]
After looking at the man page for ls on my system and searching Google, I see there IS a hack of way to use awk or perl to show octal permissions when using ls, but with bash is there anything more ...
0
votes
1answer
85 views
I can't get Cinnamon to stop freezing, how can I revert it back?
I have an issue, and I'm unsure if it is a bug or not but here's the skinny:
I updated cinnamon from 1.6.7 to 1.8 (don't get me wrong, I love it BUT!)
Ever since I did the update, Cinnamon has been ...
2
votes
0answers
47 views
Change ip addr label in Linux
How can I change the eth0 zero to eth0:1 using ip addr without deleting.
When I run
ip addr show eth0
Here is the output
2: eth0: mtu 1500 qdisc mq state UP qlen 1000
link/ether ...
2
votes
1answer
44 views
grub error : “File not found” for separate /boot/efi partition
I've installed CentOS 6.4 on UEFI enabled machine, created /boot/efi partitions.
But my grub is not automatically starting, if I start the PC, I start in Windows 8.
I can only start CentOS by ...
-4
votes
1answer
49 views
How does using linux affect your career and computer skills overall? [closed]
so I would really love to move to linux as my only OS, i had linux installed several times(different distros) But i always go back to windows. Sad, i know
Anyway I'm really into computers, i like ...
3
votes
3answers
50 views
Portable way to get script's absolute path?
What is a portable way for a (zsh) script to determine its absolute path?
On Linux I use something like
mypath=$(readlink -f $0)
...but this is not portable. (E.g., readlink on darwin does not ...
1
vote
3answers
45 views
How can I connect mail(1) to my Gmail/Yahoo/Hotmail account?
I would like to use the mail command in a shell script to automatically connect to my Gmail/Yahoo/Hotmail account and send/receive messages. How can I do this?
1
vote
3answers
43 views
Renaming only part of a file using CLI [duplicate]
I realise this might be quite a simple question, but I'm still quite new to the command line and only have a grasp of basic commands.
I've downloaded some lecture presentations (~25 or so) from my ...
1
vote
1answer
27 views
Ignore Symlinks when Extracting Tarball
I have a relatively simple question that I cannot seem to find the answer for. I am attempting to extract a tarball (*.tgz, to be exact) and receiving terminal errors on extracted symlinks. ...
4
votes
2answers
44 views
How to Save X Session — ArchLinux+Openbox
I use Arch Linux and Openbox. How can I save the state of my current openbox/X session and later restart them?
The scenario is like this: I've several browsers windows open, terminals, file ...
4
votes
1answer
46 views
Which set of commands will limit the outgoing data rate to X kbps for traffic to or from port Y?
I have a Raspberry Pi, and I'd like to have bitcoind running on it. This consumes a lot of my outgoing bandwidth at times, so I'd like to make sure it never uses more than 20 KB/s for Bitcoin data.
...
3
votes
1answer
46 views
“No such file or directory” on an executable, yet file exists and ldd reports all libraries present
ldd xls
linux-gate.so.1 => (0xb77bc000)
libQtGui.so.4 => /usr/lib/i386-linux-gnu/libQtGui.so.4 (0xb6cc2000)
libpng12.so.0 => /lib/i386-linux-gnu/libpng12.so.0 (0xb6c98000)
...
5
votes
3answers
145 views
Walking through files in directory randomly
How to change for track in *.mp3; do so that all .mp3 files in the current directory are walked through but in a random way?
16
votes
3answers
704 views
Why is dmesg called dmesg?
Is there any explanation/history behind the name of the command dmesg (which prints out some kernel messages)?
3
votes
1answer
43 views
Can't indent heredoc to match nesting's indent
If there's a "First World Problems" for scripting, this would be it. Mainly asking because I feel like I should know how to get around it if I need to.
I have the following code in a script I'm ...
2
votes
1answer
16 views
Querying display power status on Linux (Xorg) on command line
Is there a way to query the power status of an Xorg/X11 display from command line? I want to know if my laptop LCD is powered on after the screen saver--apparently the backlight is still on. This is ...
1
vote
1answer
41 views
What does this code do? [duplicate]
I've found this code in a tweet:
:(){ :|: & };:
It said something about fork, but I don't completely get how it works. Could anybody please explain in detail what it does and how it works?
...
-1
votes
0answers
14 views
Sierra wireless aircard 890 (Mobile broadband/ express card), how to either recharge and check balance of money
I'm using a mobile broadband, the Sierra wireless aircard 890 (express card) for 3G mobile connection. Everything is ok, the card's automatically recognized. But one thing that I can neither recharge ...
4
votes
1answer
47 views
tproxy per user
I'm in the process of adding some parental control to my box (http filtering), but I'm something of a nOOb when it comes to network configuration :-(
The box is used by the whole family (one account ...
2
votes
4answers
49 views
find command: how to ignore pathname?
I have to find some type of files in a directory and it's subdirectories and I only have to print out the filenames.
So here's the main command:
find -type f -name "*.c"
Now, how could I cut the ...
4
votes
3answers
51 views
Dynamic file content generation: Satisfying a 'file open' by a 'process execution'
I have a read-only file, F.
A program, P, that I'm not the author of, needs to read F.
I want the content of F to come from another 'generator' program, G, whenever P tries to read F (taking F to ...
1
vote
1answer
44 views
How to find speed of wlan interface?
I'm trying to find speed of network interface using file-descriptor. It's easy to do it for ethX, just calling cat /sys/class/net/eth0/speed. Unfortunately this method doesn't work with wireless ...
2
votes
1answer
39 views
Detecting Physical Network Addresses Reliably
I'm trying to find a way to list physical (aka MAC) addresses for all network cards/interfaces attached to a certain host. The problem is, I want this functionality on my Debian live (squeeze) USB ...
2
votes
1answer
16 views
Chrubuntu 12.04 Bluetooth not detecting devices
I have Chrubuntu running on an Acer c710. It seems like most people had Bluetooth working right away. I Am having a problem with it. The Bluetooth manager allows me to turn the adapter on and off, but ...


