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.

learn more… | top users | synonyms

2
votes
2answers
2k views

quick way to adduser and userdel in multiple machines

Currently I just go to each of our servers to type adduser <username> --firstuid 1101 --gid 1001 --disabled-password to add a user. Is there a quicker way to do so on all servers at the ...
2
votes
1answer
3k views

How to install an old version of gcc using yum on fedora 18?

I want to install gcc 3.6 on fedora 18. when I do yum install gcc I get the gcc 4.7. but I want an old version.
2
votes
1answer
483 views

Does schroot allow configuration files in the home directory to be overwritten?

When schroot is configured to mount /home, will packages installed inside the chroot overwrite the configuration files in $HOME? For example, if a newer version of gconf2 is installed inside the ...
2
votes
1answer
13k views

Changing kernel bootsplash image?

I want to display a custom boot splash image on my Beaglebone Black (running Ångström). I know of three places where images can be dumped to the framebuffer: Bootloader (uboot) - needs display ...
2
votes
2answers
5k views

Mounting OSX hard-drive on linux

I believe the motherboard on my macbook died, so I'm trying to recover the information on the disk. I pulled the hard drive from the macbook and plugged it into one of my SATA ports on my Ubuntu ...
2
votes
1answer
29 views

Centos Sftp Ssh - How always create files with rwx-rwx-r-x and always owned by a certain group

I have a user myuser, which is only allowed to connect to ssh via sftp. I'd like this user to always create files with rwx-rwx-r-x and always owned by the group apache. I've tried to accomplish the ...
2
votes
1answer
191 views

how to make less pager respond to scroll wheel and not clear the screen

I know about answers like how-to-make-mouse-wheel-scroll-the-less-pager-using-bash-and-gnome-terminal, which is to remove the -X flag from the $LESS environment variable. But I would like to do both ...
2
votes
1answer
2k views

Changing netgear router telnet root password

I have a Netgear JNR1010 router but I am not able to change the router's root password. Router Firmware Version is 1.0.0.18 I tried multiple commands in the Busybox console that came up, BusyBox v1....
2
votes
3answers
3k views

Host your own website and dns server

I pay big money yearly for all of my website hosting, domain registrars, etc. My IP is dynamic and my provider allows different http ports. On my local webserver, I have access to my websites like ...
2
votes
3answers
131 views

Moving from Vista to Linux

I am interested in changing the Operating system on an old laptop of mine from Vista to Linux. Problem is I don't know anything about Linux. I have been told Fedora is a good distribution for me to ...
2
votes
2answers
4k views

How can I copy files from a Google Cloud Compute Server to my local machine

I'm trying to download all of the server files from Google Cloud Compute (running Linux Debian). I'm extremely unfamiliar with SSH and Google Cloud Compute as a whole. I'd prefer either copying all of ...
2
votes
2answers
1k views

How to redirect output from an infinite-loop program

I have a program running an infinite loop and will not terminate until receiving a CTRL+C signal. What I want to do is redirecting the output from this program into a file, say log for example. ...
2
votes
3answers
5k views

Why does this script fail when run from cron, but works when run manually?

I have a relatively simple bash script that works great when invoked directly, but fails when run by cron. Why does this fail and how can I make it work via cron? #!/bin/bash apt-get update -y apt-...
2
votes
2answers
770 views

RTL8188CUS AP and Client mode simultaneously with hostapd in Linux?

I'm trying to figure out how to set up my RTL8188CUS Wifi dongle to run in both AP and Client mode at the same time. How can I do this in Linux? I have hostapd running fine and I remember reading ...
2
votes
1answer
1k views

Very Slow DSL (ethernet) speed [New Interesting Update]

Very Interesting and Important Update: Due to some reason I just thought to do a complete new setup and this time I decided to again have openSUSE plus Ubuntu. So I first reinstall Lubuntu and then I ...
2
votes
1answer
4k views

VM on ESXi host - How does one make externally accessible?

I have a home server running ESXi v5.0.0 with a VM guest OS (linux) up and running. I have apache 2.x installed and serving to my machine (i.e I can access the default apache page when going to http:/...
2
votes
1answer
905 views

Is it safe to use the miredo-client?

This is how I can surf websites behind IPv6 networks under Fedora 14 before: ping6 ipv6.google.com connect: Network is unreachable solution: with root just: yum install -y miredo-client sed -i "s/...
2
votes
2answers
13k views

Total disk usage for a particular user

I would like to see the total disk usage for myself on a particular file system. I executed the command du -h ~my_user_name However, this lists every directory owned by my_user_name. I would like ...
2
votes
1answer
59 views

OpenSSH server refuses to accept key authentication unless logged into server locally

My server is running Ubuntu-Server and ahs OpenSSH-Server installed on it. I set up the /etc/ssh/sshd_config file to accept and require rsa keys, it looks for keys in the 'AuthorizedKeys ~/.ssh/...
2
votes
1answer
2k views

When I reboot going from Linux to Windows, the USB keyboard and mouse don't work

When I'm on Linux and I reboot the machine and choose to boot on Windows 7, the keyboard and mouse are turned off, like they aren't receiving power. After another reboot they work fine (unplugging and ...
2
votes
2answers
3k views

Remove Gnome windows manager and install the Xfce windows manager

Is it possible to install a different windows manager? Currently I am using an HP Netbook 210. The windows manager I am using is "gnome-shell" that comes as default with Fedora 15. However, I am ...
2
votes
3answers
2k views

How to make Windows 7 Network show Samba share after VM is rebooted/restored?

On Windows 7, I have VirtualBox running Linux (Ubuntu 8.04), with Samba set up so that the Windows host can access it. But if the virtual machine is shut down & restored, or rebooted, the Windows ...
2
votes
3answers
561 views

use installed system as virtual system on virtualbox [duplicate]

Possible Duplicate: Create Virtualbox image of a physical partition I have two operating system installed on my PC (dual boot), I use both a lot and sometimes I restart my PC two times to do ...
2
votes
1answer
362 views

sed: Removing \r\r before \n in a very large file

I have a corrupted disk image file (about 27 GB) in which before all \n characters \r\r was inserted. I want to remove these \r\r before all \n. I tried with awk: awk '{ sub("\r\r$", ""); print }' ...
1
vote
1answer
1k views

How can a partition be full if du does not show it is?

On one of my systems, the root partition is full: snip:˜ # df -h Filesystem Size Used Avail Use% Mounted on rootfs 11G 9.3G 0 100% / devtmpfs 744M 36K 744M 1% /dev ...
1
vote
1answer
520 views

Simulate pgrep using plain grep

How can I do pgrep -U someUserName using just ps and grep? I.e. not count on pgrep being set in a system?
1
vote
2answers
2k views

How to mount Safeboot encrypted Windows partiton in Ubuntu

how do I mount a SafeBoot encrypted Windows partition on Ubuntu (10.04)? I have tried all these mount -t ntfs /dev/sda1 /mnt/windows tried changing fstab tried changing grub.cfg I also installed ...
1
vote
3answers
2k views

Unable to run openoffice in headless mode

I want to automoate some PPT -> PDF conversions, so I want to run openoffice in headless mode for scripting. On my machine with X running I can start opemoffice in headless mode via soffice -accept=...
1
vote
1answer
461 views

How do you wipe unpartitioned disk space?

I can wipe a single partition: dd if="/dev/zero" of="/dev/sdaX" or I can wipe the whole disk along with all partitions on it: dd if="/dev/zero" of="/dev/sda" But what if I wanted to keep my ...
1
vote
1answer
157 views

How to setting up iptables for traffic fowarding on port 80 from specific sources

Im running a web server on port80, but i want traffic coming from ip 212.333.111.222 on port 80 to be fowarded to port 9020 on the same server that my web server is rinning at that is my sshd port
1
vote
2answers
20k views

How to Install Kali Linux on Windows 8 With BCD instead of Grub

I have Windows 8.1 64-bit installed on my PC. I have been trying to install Kali Linux using its ISO and Universal USB Installer (1.9.5.2) using a USB drive since the CD drive won't work. The ...
1
vote
2answers
2k views

Boot iso images from bootable USB

I'm trying to figure out an universal solution to have a multi-boot usb memory stick. I have some ISO images like: knoppix, debian, ubuntu, etc. Is there any way to do the following procedure: List ...
1
vote
2answers
386 views

Same absolute path on linux and windows 7

I have windows 7 and ubuntu on dual-boot and I'm sharing the same firefox profile folder on both OSs, which is located on the windows partition (which is mounted on ubuntu startup automaticaly). My ...
1
vote
1answer
296 views

How to recognize black and white images?

I am wondering whether there is a way to recognize (and possibly move/delete) B&W photos in folder containing both B&W and colored images? I am using Ubuntu Linux.
1
vote
2answers
147 views

How to only allow a program to write to a directory if it is mounted?

I have a program which writes some files to a directory. My problem is that if the directory isn't mounted for some reason, the program writes to the directory anyway, but the files end up in the ...
1
vote
2answers
874 views

e2image restore file system metadata

I'm trying to recreate file system metadata on a virtual disk. I can save this metadata using e2image, and the e2image man page tells me I can use e2image -I to restore the file system. Unfortunately, ...
1
vote
0answers
144 views

Does a VirtualBox/CentOs need two adapters to work properly ?

I have a Windows 7, 32bit, HP Laptop. I have CentOs 6.5 running on VirtualBox 4.3.10. Here is my eth0 config. Code: #vi /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 HWADDR=08:00:27:81:0F:...
1
vote
1answer
921 views

Restrict mouse from moving to secondary monitor

I have two screens connected to my system and I am working in Ubuntu Linux. Is it possible to make the mouse work only on one screen and to make it stop going in the second one?
1
vote
2answers
155 views

Attaching some code to session start and end in Linux

I'm trying to execute some code (let's call it login.java) when I log in and out of my linux machine. Is there any way to do this? I'm looking for perhaps a way to trigger the code? I've thought of ...
1
vote
1answer
634 views

start ddclient as daemon with systemd

I'm trying to start ddclient as daemon in my Ubuntu 15.04, which now uses systemd, but was unable to even following the Ubuntu wiki at https://help.ubuntu.com/community/DynamicDNS to words. I've ...
1
vote
0answers
227 views

Force check all file systems in Ubuntu

How to force check all file systems under Linux/Ubuntu? My newly installed Ubuntu 15.04 Vivid stops booting after the suspend/resume failed. Is there any easy way to force check all the file systems ...
1
vote
1answer
3k views

iTerm2 loses “ls” colors if I ssh to a server

Why do I lose ls' colors when I ssh to a server? I would like those colors to be preserved. Is this possible? Should one do something on the server side?
1
vote
2answers
6k views

Best fullscreen solution for vnc on linux

For development, I primarily depend on Eclipse and a GNU Screen session in a terminal. At work, I have dual monitors, and have them usually maximized on each of the screens. When I work from home, I ...
1
vote
5answers
674 views

Resolution Independence on OSes?

I know this isn't really a question, but has there been any recent advancements or news about Resolution Independence in any of the major OSes? (Windows / Mac / Linux) I'm quite interested in the ...
1
vote
2answers
681 views

When is swap memory useful? Why do we need to set it to twice the amount of RAM? [duplicate]

I know that memory will be swapped whenever RAM usage is high. And I read that we need to set swap to be twice of the amount of RAM. But why? How will it shift from RAM to swap? If we do not have swap ...
1
vote
5answers
492 views

Setting up a machine to use a key over SSH

I am trying to set up a key between my Ubuntu machine and my web server so that I can SSH into it without needing to type a password each time. I have followed the tutorial found here - http://www....
1
vote
2answers
5k views

Piping tail -f into awk

Greeting, I am trying to pipe tail -f into awk to monitor a logfile in realtime, but according to examples, there should be not problem but I can't get it to work. here is the command I'm running ...
1
vote
1answer
1k views

Counting disk capacity using cylinder-head-sector model

Let's look at fdisk -l /dev/sdc output. # fdisk -l /dev/sdc Disk /dev/sdc: 786 MB, 786432000 bytes 255 heads, 63 sectors/track, 95 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector ...
1
vote
0answers
547 views

How can I call phones from my pc using a mobile phone connected to my pc?

I mean this question in abstract for usb/bluetooth connected featurephones and dumbphones. But also specially for this mobile phone: Motorola RAZR V3i I have computers running debian and ubuntu, can ...
1
vote
2answers
499 views

tools for checking hard disk failure

Fedora 13 I am just wondering if there are any tools for checking the life of the hard disk. I had my hard disk for 4 years. And now I think it is having some problems. Is there any tools I can use ...