0
votes
1answer
35 views
Linux snapshotting issues [duplicate]
Is there any way to deal with incoming writes while a backup is in progress in linux. Example, you are writing to your sql database and lvm snapshotting at the same time. This will result in corrupted ...
1
vote
1answer
35 views
Any other way to define an environment variable?
I'm quite new to Linux. Debian Wheezy is now running on my Laptop (64 bits).
I recently installed Oracle 11g R2 database for evaluation purpose, and defined environment variables (such as ORACLE_SID) ...
2
votes
1answer
35 views
Change Password of a user in /etc/shadow
I would like to change the password of a user in the /etc/shadow.
I can't use password changing programs like passwd. It must be done by editing the /etc/shadow.
The /etc/shadow is on a mounted hard ...
3
votes
2answers
40 views
Create custom wordlist
I want to create a custom list of (scientific) words for purposes like spell checking and OCR based on my collection of scientific papers in pdf format. Using pdftotext I can easily create a text file ...
0
votes
0answers
24 views
Xfce: Upgrade from Squeeze to Wheezy broke xfce's user policies
While using Debian squeeze, I was able to allow a user shutdown in xfce by adding users to the powerdev group (see here: xfce: Allow shutdown for non-root users).
Now, I upgraded my system to Debian ...
1
vote
1answer
20 views
Writing triggers for mcelog
Just starting to look into mcelog for the first time (I've enabled it and seen syslog output before, but this is the first time I'm trying to do something non-default). I'm looking for information on ...
3
votes
0answers
31 views
How do I make the CLI run on dedicated graphics?
I just finished my Gentoo minimal install and the first thing I wonder is why I get no picture. I did have signal on the live CD, so that was pretty odd. I plugged the monitor into the Intel HD ...
3
votes
0answers
29 views
First key pressed repeates forever
I just installed CentOS 6.4 on an old machine I acquired for a development box, but I am running into keyboard issues I can't get around.
I start the machine and go to type a user name in and ...
1
vote
0answers
29 views
Why some gnome-terminal tabs look depressed
On my Ubuntu 12.04 Linux 3.2.0-43-generic system with AMD Athlon 64 X2 5000+ cpu, with Unity desktop, ubuntu-2d desktop-session, and Metacity window manager, some of the tabs on a GNOME Terminal ...
1
vote
0answers
11 views
linux mint cinnamon - AR9485 Wireless Network Adapter keeps disconnecting
Lately I got a DELL inspiron 15-3521, I installed the latest Linux mint cinnamon. I have been having some problems with my Ethernet card, when i start my pc everything works perfectly for about 10 to ...
3
votes
1answer
31 views
IPTables - Port to another ip & port (from the inside)
I currently have a NAS box running under port 80. To access the NAS from the outside, I mapped the port 8080 to port 80 on the NAS as follow:
iptables -t nat -A PREROUTING -p tcp --dport 8080 -j DNAT ...
1
vote
1answer
15 views
Install postgresql 9.2 on debian wheezy (on virtualbox)
I have virtualbox with Debian Wheezy. I'm trying to install Postgresql 9.2 on it. When I trying do it by this instruction i have next:
Reading package lists... Done
Building dependency tree
Reading ...
4
votes
2answers
48 views
hook a script to apt-get
I have /tmp on a separate partition, and mounted with noexec. I am using Debian.
The installation of some packages fails, because the post-installation scripts of some packages need to run from /tmp.
...
2
votes
1answer
38 views
Can iptables be used to convert a single-homed host into a NAT server?
Given: I have a machine (HostA) with only one NIC which has Internet connectivity. I have another machine (HostB) with one NIC on the same switch. HostB is not configured for Internet access yet. ...
4
votes
2answers
49 views
How to install GNU/Linux on a Windows PC without the BIOS password?
I want to install a GNU/Linux based operating system on a computer with Windows preinstalled, but unfortunately, the BIOS is set to only boot from the harddisk, and there is no way to boot from ...
2
votes
2answers
33 views
Firewall distro to share bandwidth evenly between connected users
I'll first describe my situation.
I have a network made by a central x86 server/firewall, 5 access points and 2 unmanaged routers in between.
20 Mbits download and 1 Mbit upload ADSL.
Upload is ...
1
vote
1answer
23 views
How do I set affinity of a particular thread on FreeBSD?
As the title says, I'm trying to figure out how to set the affinity of a particular thread (but not the entire process) on a FreeBSD system.
On Linux, I'm able to do this with ps -L uH [pid], ...
1
vote
1answer
54 views
How to make Ctrl+PgUp and Ctrl+PgDn change window tabs
I am running GNOME 3.4 (Debian 7.0) and my laptop (Gigabyte Q2532), unlike all those I've used before, doesn't change application tabs with CtrlPg Up and CtrlPg Dn. This forces me to use Alt0...9, ...
2
votes
1answer
29 views
SED Showing CRLF While Vim Not Showing
Why sed l\;q shows a CRLF while opening the file in Vim with :set list doesn't show any CRLF
3
votes
1answer
40 views
Why aren't CD image files listed when mounted in current directory?
When mounting a disk image in the current directory using :
sudo mount -o loop -t iso9660 wall.iso ./
Listing files in current directory only returns wall.iso .
To view the actual files on the disk ...
3
votes
1answer
26 views
iptables: recent module
I am using the "recent" module to prevent port scanning, such as:
-A INPUT -i eth0 -m recent --name PORTSCAN --update --seconds 60 -j DROP
-A INPUT -i eth0 -p tcp -m tcp --dport 22 -j ACCEPT
-A INPUT ...
0
votes
1answer
21 views
Keyboard shortcut to switch files in one Emacs instance?
I've multiple files opened in an Emacs client. Right now, to toggle between files, I've to click on the file name at the bar below in the editor. Any keyboard shortcuts for switching between files?
2
votes
0answers
36 views
Accessing multiple wifi networks simultaneously from debian wheezy
I have got 2 wireless adapters on my machine (one built-in and the other a purchased USB wireless adapter)
is there a way I can utilize different WiFi networks simultaneously?
I have in mind ...
0
votes
2answers
39 views
`ps | grep | kill` aborts my script prematurely [duplicate]
I have a Linux computer that I remotely SSH into using plink on a Windows XP machine. I have the Plink program set to execute commands in a script using automated login:
plink -ssh [domain name] -l ...
1
vote
1answer
55 views
How to build a live Debian CD/USB in Windows, bootable in EFI mode?
I tried to install the latest stable Debian release (Debian 7.0 "Wheezy") using the Debian Multi-arch netinstall (AMD64) "debian-7.0.0-amd64-i386-netinst.iso" on my laptop. My laptop has a SecureCore ...
0
votes
1answer
21 views
Nouveau doesn't work after upgrade to Debian Wheezy
I upgraded from Debian squeeze to wheezy. My box contains an old graphics card not supported by current Nvidia drivers for distros newer than lenny (NV5M64 [RIVA TNT2 Model 64/Model 64 Pro]), so in my ...
2
votes
0answers
23 views
Http proxy to select external interface based on host header
I have a very specific use-case at work where I have several external IP addresses (a full class C), and I need to select the outbound IP address I'm using. The requests are http, and the application ...
1
vote
3answers
68 views
Setting file permissions in bash script
This script is not working the way I thought it would .I though it would find all the scripts that have every one rwx permissions changed to the permissions of xx5
#!/bin/bash
# the / makes find ...
1
vote
2answers
66 views
Unix command to rename multiple files
I have some dirs with different plugin-cfg.xml that I want to take a backup off and keep in the same dir.
Eg
Plug6_a1/plugin-cfg.xml
Plug6_a2/plugin-cfg.xml
Plug6_a3/plugin-cfg.xml
Q- how can I make ...
-1
votes
1answer
29 views
What are the relative merits of the various standard Unix archival utilities? [closed]
There are many archival tools for Unix, with varying degrees of availability. To make matters more confusing, many of them can write each other's formats.
I am seeking more information on their ...
1
vote
2answers
49 views
awk a specific column with unexpected line break
I can't seem to find a solution for this and it's driving me crazy. I know I can use awk to print a column(s). I'm having trouble printing a specific column though because of the way my file system is ...
2
votes
2answers
41 views
rsync certain files, excluding the rest, ignoring .svn/ directory, recursively
I'm using rsync to copy some files from a share to another.
Recursively, I need to:
Delete files at destination that were removed from the origin
Only sync php and js files
Exclude every other file ...
-1
votes
0answers
33 views
create a /proc symlink
I'm trying to build a module using the method shown in this answer.
Basically I need to create a symlink I got it to build, when I try to load it using insmod I get:
-1 invalid module format
and ...
4
votes
4answers
212 views
How to make `cd dir/filename` take me to dir/?
I would find it very convenient to be able to use cd with a file argument.
cd myDirectory/anyname.anyExtension
would be equivalent to
cd myDirectory/
What would be the best alias or function to ...
1
vote
2answers
47 views
How do I pipe colored diff output to less?
I've been using git diff, which produces colored output. However, I now find I need to use ordinary diff for something, and it's producing a lot of output that is hard to read because of the lack of ...
1
vote
1answer
22 views
Recording a webcam using ffmpeg
I'm struggling with ffmpeg. My webcam can do 720p at 30fps, but only when using the MJPEG codec:
~> v4l2-ctl --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
Index : 0
Type : ...
1
vote
1answer
33 views
compressed and uncompressed kernel on an embedded device
I have been using several different embedded boards that store kernel, init files, filesystem, etc. on partitions of a (micro)SD card. I notice in the example usage or instructions that compressed ...
1
vote
1answer
21 views
What is rpc.statd, what ports should it be listening on, and how to kill it?
I have found rpc.statd running from a netstat -tunap command, on several ports (TCP:59061, UDP:40594, UDP:919) on my Debian server.
I believe it's to do with NFS but I'm not running an nfs server ...
0
votes
1answer
34 views
Utility script framework
We have a couple dozen utility scripts that run on various machines to do things like application level backups, pruning out old data, cleaning up disk space, etc. They were written by multiple ...
1
vote
1answer
24 views
Clipboard sharing between the host OS and a virtual console of a VirtualBox linux guest
I have a CentOS guess OS running without X11. Is there anyway I can paste text from the host clipboard into the virtual terminals or highlight text in the vt via the console mouse daemon and paste it ...
3
votes
1answer
41 views
Script not getting executed as per expectation
I have two Perl scripts at a predefined location in Unix. This predefined location is set in path variable ($PATH). Now when i try to run first script (from any location) the script runs successfully ...
-3
votes
1answer
62 views
Rename two files [closed]
I would like to rename two files files by using a script.
E.g.
mv plugin-cfg.xml plugin-cfg2.xml
and
mv plugin-cfgbk.xml plugin-cfg.xml
I need to do this in multiple directories.
...
2
votes
1answer
37 views
Line endings when using GNU Screen
I'm seeing some slightly odd behaviour when using GNU Screen 4.00.03 on a Red Hat Enterprise Linux 6.4 system.
If I connect without Screen, looking at the logs I can see each line is terminated with ...
2
votes
2answers
38 views
How to find files with a certain subpath?
I need to find all xml-files that are placed in folders named config. Also config must be somewhere under a folder named trunk. For example, I am interested in all files like below:
...
1
vote
1answer
23 views
Atomic repo to just update Ossec and not the rest is that possible for Centos 6.4?
I followed this link http://www.ossec.net/?page_id=19 and enable both epel and atomic repo to install ossec. My problem is I just want a local installation of ossec so I ran this yum install ...
2
votes
1answer
21 views
UTF-8 Characters in Byobu Screen Status Line
I'm running Byobu with Screen backend. I have a custom status script that wget's an RSS feed and shows the latest headline in it. If there are non-ASCII characters, they are not printed correctly. ...
1
vote
2answers
64 views
What does the tilde (~) mean at the end of a filename? [duplicate]
What is the file with the ~ at the end of the filename for?
$ ls # aliased to add flags
-rwxrwxr-x 1 durrantm 2741 May 16 09:28 strip_out_rspec_prep_cmds.sh~*
drwxrwxr-x 13 durrantm 4096 May 16 ...
2
votes
0answers
24 views
Add Ubuntu to list of Grub boot options
I have an old laptop with an old version of Debian. I would like to install Ubuntu as well. Is it possible to install Ubuntu from the HD (not a rescue CD or flash-drive) and have it reside as a Grub ...
1
vote
2answers
16 views
Allowing only specific users to login via ssh at one port and others to login via another port
I have the following use case: Need to allow users to login from a secured, trusted network and then allowing a couple (only two) mobile users to login remotely on a Linux Centos machine.
I can make ...
1
vote
2answers
64 views
Colorful ssh banner
I would like to colorize my ssh banner. I now I can perform it like so :
In /etc/profile I can put
echo -e "\e[1;31m Colorful text"
echo -e "\e[0m Reset"
But I have an ASCII art in the banner ...

