Questions tagged [linux]
A family of Unix-like operating systems using the Linux kernel. If your question is about a certain distribution only, use a more specific tag.
58,871
questions
1
vote
1
answer
618
views
Routing issue with bridged connection
I had a problem setting up a wired to wireless bridge on my Raspberry Pi box - but that is now fixed - Wired to wireless bridge in Linux - but the consequence seems to be that the squid proxy server ...
14
votes
3
answers
5k
views
Direction of a symlink
touch a
ln -s a b
The above command creates a symbolic link which originates from "b" and points to "a":
lrwxrwxrwx 1 root root 1 Dec 20 23:41 b -> a
The question is that how to say that ...
1
vote
1
answer
5k
views
Best filesystem for running linux off flash drives [closed]
Most other questions here close to this topic are either for SSDs, or ReadOnly usb live images.
I'd like opinions on Read-Write usb images. I pretty much installed Fedora18 on a 16GB USB3 pen drive (...
3
votes
2
answers
2k
views
shell script - How to output the owner of a file
Is there a command to output the owner of a file, and nothing else? I suppose I could use ls and run it through sed, but if there is a better way, I would definitely use it.
1
vote
2
answers
104
views
Booting Linux on a PC
I am new to linux. I am considering getting a Raspberry Pi and want to play around with linux to get the feel of the os. I am familiar with Unix (Max OS) and Windows but linux is new to me. Here's my ...
0
votes
2
answers
2k
views
creating CDF data using bash or awk or perl
we have some data like:
12 0
13 0
20 0
25 1
64 4
77 1
89 100
1201 204
I'd like to get this output:
3 0
5 1
6 4
7 100
8 204
explanation: we have 3 AS(autonomous systems) that have degree of 0,and ...
8
votes
2
answers
2k
views
What is the difference between Ubuntu, Xubuntu, and Lubuntu
I am relatively new to Linux operating systems and I'm trying to find out more about them. Unfortunately, I cant find a whole lot of good sources about them. Right now I get a bit confused and mixed ...
3
votes
2
answers
498
views
Maintain text colors when wrapping command in bash script
So I've made a small script to search through my project for a word:
#!/bin/bash
grep -n $1 js/*/**.js
grep -n $1 js/*.js
When running these commands in the command line I will get some nice syntax ...
7
votes
4
answers
3k
views
How to empty the contents of continuosly streaming file in linux
i have the program running using this command
command 2> sample.txt
now that file is growing continuously and command will exit in 5-6 days and i beleive that file size won't go in GB
I tried ...
1
vote
2
answers
900
views
Error with the linux/unix command.permission denied
When I enter the following command in my mac OSX terminal i get a "permission denied" error even though I have administrative privileges.
Command:
administrators-Mac-mini-2:Build Foldername sarwan$ ....
1
vote
1
answer
936
views
yum-builddep fails to retrieve an unrelated RPM and fails - how to prevent?
I'm trying to download sources required to build nekovm using yum-builddep, accidentally, I have nodejs RPM in the list, which is irrelevant to Neko, but it causes yum-builddep to fail, when searching ...
6
votes
3
answers
3k
views
Linux: find first result from specified search path
If I have a colon-separated path list, much like $PATH, but not neccessarily $PATH.
I want to search that list for a specific file name. However, I only want the first matching path.
I have ...
2
votes
3
answers
115
views
mirror full website1 and all links to specific website2
I want to mirror a website that will be taken down soon, the problem im facing at the moment is simple -> mirror whole website1 and all links (will be files/images/similiar) to website2 too, so i got ...
0
votes
2
answers
736
views
Gnome: How to open a very very large log file?
I've got a log file about 157Gb (Gnome). It's a very large file and nor gedit nor vim can open it.
Alternatively I want only to see the last 20 lines and I can't back it up because of space storage ...
0
votes
2
answers
75
views
OpenSSH connection doent display Path or Name
I recently re-installed a Ubuntu server (12.10) and I happened to have a minor issue with OpenSSH.
Once I created some new Accounts and logged into those the terminal always replys with
"$".
...
0
votes
1
answer
2k
views
How to remove python installed from source in Oracle Enterprise Linux 5.4
I installed python 2.6.6, I already had python which is lower version 2.4 by default.
Now I want to remove the python 2.6.6 ? There is no uninstall target and remove procedures from the internet.
I ...
0
votes
1
answer
148
views
Mac friendly file sharing from VirtualBox
I have set up Ruby on Rails on Ubuntu into a VirtualBox instance on my PC, I enabled Samba and I'm connecting to it via the home network from my Mac. All is fine except that I have some issues ...
4
votes
1
answer
2k
views
Is there a command line client for 8tracks.com playback? [closed]
I hope I'm not spamming with this kind of question here, but: is there a way to play 8tracks.com playlists from Linux command line using, for example, mplayer or mpg123?
There is the 8tracks.com API, ...
1
vote
2
answers
5k
views
How to ouput the continuous stream to a txt file in linux
I have the command which continuosly outputs something on the screen of putty like we have when we install something.
Now that process is very long and its going to take many hours.
I have few ...
10
votes
1
answer
21k
views
Counting occurrences in first column of a file
We have this file:
1 2
1 3
1 2
3 3
52 1
52 300
and 1000 more.
I want to count the number of times each value occurs in the first column.
1 3
3 1
52 2
This means we saw 1 three times.
How can ...
2
votes
2
answers
4k
views
iptables port based routing
I've been Googling this for days with no success. I connect to a VPN from my server from time to time and I'm trying to configure my Debian server to only use port 80 and 443 through the VPN and all ...
3
votes
1
answer
2k
views
Send apache traffic over VPN only
Is it possible to have an Apache webserver only send web traffic over a VPN?
I've got a webserver (latest Debian) running at Linode that I use for an internal website at my office. For security ...
3
votes
2
answers
2k
views
How to move files down a directory?
I have inherited a folder structure on a project and would like to simplify it a bit. I have a root full of folders (1st level) and each of those folders has a number of folders in it (2nd level) and ...
7
votes
1
answer
3k
views
gparted crashed during a resize; what are my options?
I was in the process of resizing an NTFS partition on my 2TB data drive (increasing its size, moving it all the way to the beginning of the disk) when gparted unexpectedly terminated at perhaps 66% ...
0
votes
1
answer
268
views
sshfs-fuse : how to open files on one linux box from a second box
I am relatively new to the linux world so I apologize in advance for any silly question I may ask. I have set up some tools that I like to use for programming on a ubuntu box. Now I have another ...
6
votes
2
answers
4k
views
How do I boot [embedded] linux from sd card?
I am hacking together a quick embedded linux system on a DM816x evm board. Previously I have been using TFTP and NFS to load my kernel and root filesystem to the board. I am now trying to switch over ...
3
votes
3
answers
80
views
merge pieces of file together
I have a directory tree of files I need to loop through and reformat the lines. can I do this with sed with some combination of find?
for each file, I'll need to adjust the text in the file from
......
0
votes
1
answer
104
views
Different files on shared partition?
I am dual-booting Windows 8 and Ubuntu 12.04. My partition scheme looks like this:
/dev/sda1 - Windows 8 (nfts)
/dev/sda2 - Ubuntu / (ext4)
/dev/sda3 - Ubuntu home (ext4)
/dev/sda5 - swap
/dev/sda6 - ...
4
votes
3
answers
112
views
Output numbers from a file in a different order
I have a file that contains:
1 2 3 4
1 3 5 4 8
3 2 1
Each line has a different number of digits. And there are 1000 more like this.
I want the output like this:
1 2
2 3
3 4
4 0
1 3
3 5
5 4
4 8
8 ...
7
votes
3
answers
3k
views
Remove duplicates in each line of a file
How can I remove duplicates in each line, for example here?
1 1 1 2 1 2 3
5 5 4 1 2 3 3
I'd like to get this output:
1 2 3
5 4 1 2 3
There are lots of lines (100,000) and in each line I want ...
2
votes
1
answer
3k
views
Network Bridging for WiFi-to-Ethernet in linux
It is possible to network bridging a WiFi-to-Ethernet link in Linux instead of Ethernet-to-Ethernet?
I have a CentOS 6.3 machine. I am using KVM and I want perform a bridge to visualize more machines....
2
votes
1
answer
494
views
Centralize proxy settings for all the application on my workstation
As a consultant, I used to work at different clients premises.
It happens frequently that most of them has specific proxy settings, but not all the application I have installed on my laptop get ...
52
votes
2
answers
99k
views
cat /proc/meminfo what do all those numbers mean
In reading the man page on the free command in Linux. I found that is gets its info from /proc/meminfo.
I understand a few of the entries, like MemTotal and MemFree. What do the rest mean.
cat /...
-2
votes
1
answer
70
views
Google in Chrome on Linux
Google search and youtube do not work in Chrome on Linux (Ubutu 12.04 x64, Mint 14 x64, Android on Nexus 7). I can find video on youtube, but it don't loading. Also, i can get results from google ...
5
votes
3
answers
3k
views
Mount remote drive by port forwarding
I have a windows 7 computer at home and a remote windows XP machine with an external USB drive attached to it. I would like to be able to copy files to and from home/the remote USB drive. The problem ...
11
votes
2
answers
14k
views
How do I execute a Linux command whilst using the less command or within the man pages?
I generally pipe the command ls with less and would like to execute a command while it is paging e.g. I come across a file that I would like to delete so I would like to execute the command rm {...
3
votes
1
answer
1k
views
How can I uninstall Linux from a dual-boot machine?
I installed two OSes, Windows 7 and Linux. Now when I merge my disk partition D and F the grub> prompt is opened when I start my PC. I need to enter four commands to boot into Windows.
I want to ...
4
votes
2
answers
10k
views
How can I bind mount a directory with a space in it?
I have a drive mounted at /media/ that contains a directory with a space in the name - let's call it "My Stuff".
I would like to bind mount it to "My Stuff" in my home directory. I tried the ...
3
votes
1
answer
3k
views
Automated Backups From Windows To Remote Linux Server [closed]
I love rsync under Linux but Windows does not natively support it.
Is there any way to automate backups to a remote Linux Server from say...Server 2k3 or 2k8?
2
votes
1
answer
13k
views
How can I repair my USB drive?
USB drive is in read only state and I can't repair it.
First of all I tried erase it using dd:
root@yurko-laptop:/home/yurko-laptop# ls -l /dev/disk/by-id | grep usb
lrwxrwxrwx 1 root root 9 Дек 18 ...
4
votes
1
answer
1k
views
Ubuntu lightDM password expiration warning delay
I enabled some password expiration policies on my Linux box and am able to see a warning when login: Warning: your password will expire in X days. This works also on screensaver when entering my ...
3
votes
1
answer
2k
views
OpenWRT based gateway with dnsmasq and internal server with bind
I have router based on OpenWRT which has dnsmasq 2.59. Inside my local area network I have a NS server bind. This server has internal and external views for a couple of my domains. My router forwards ...
1
vote
1
answer
349
views
Xmodmad does not run at startup/login
I put settings in a file called ~/.Xmodmap:
xmodmap -e 'keycode 66=Return'
xmodmap -e "clear Lock"
The next time I logged in, I was prompted as to whether to load ~/.Xmodmap. I loaded it, and tick “...
1
vote
0
answers
198
views
My laptop behaves strange after suspend
When waking my laptop from suspend, it behaves very strange - the CPU quickly gets hot and the battery drains insanely fast. Looking into powertop, there is a process called 'rtc_timer_do_work' that ...
130
votes
14
answers
148k
views
How to force GPG to use console-mode pinentry to prompt for passwords?
Using gpg from a console-based environment such as ssh sessions fails because the GTK pinentry dialog cannot be shown in a SSH session.
I tried unset DISPLAY but it did not help. The GPG command line ...
1
vote
2
answers
605
views
Found in common SSD advice, but how does 2,048 equates to 1MB?
I'm trying to set up a Linux partition on my laptop and I've run into the same phrase all over the internet. It's on one of the superuser answers...
In the question Which linux filesystem works best ...
2
votes
1
answer
3k
views
XFCE window placement settings resetting
I prefer all my windows to be centered when created so I went to Window Manager Tweaks » Placement and set Maximum size of windows to trigger smart placement to Max (large) and also checked At the ...
1
vote
5
answers
5k
views
Linux - reset user settings on every login
I would like to install a Linux machine (latest Linux Mint Debian Edition) as a shared computer for multiple users. All of the users should share one account with the same password.
Think of it as a ...
0
votes
2
answers
1k
views
What is advantage/disadvantage of creating soft link to executable file in /bin?
I often use this way to make my executable appear in terminal. Is it good or bad? And why?
0
votes
1
answer
616
views
How to install get-iplayer from source file?
I want to install the latest version of get-iplayer in Debian, and I've got its source file, a tarball file, from here. However, I don't know what to do with it.
Usually when I come across a tarball, ...