0
votes
1answer
416 views

Unexpected token on bash file backtrack5 r2

When I log in, appears the following error: -bash: /etc/profile: line 1: syntax error near unexpected token (' Inside the file there is the next code: n# /etc/profile: system-wide .profile file for ...
2
votes
1answer
967 views

XFCE - Send window to other monitor on keystroke

I am running Xubuntu 11.10 with a dual monitor setup. I am looking to create a keystroke (maybe CTRL + ALT + SPACE which will allow me send a selected window to the next monitor. In GNOME there is a ...
4
votes
2answers
3k views

How to configure swap space after system instalation?

I've installed Debian Wheezy and after installation completed, I realized that I forgot to set the swap memory. So now, how can I configure the swap space?
1
vote
1answer
3k views

How to install LXDM instead of GDM3?

I'm running Debian Wheezy and my default Display Manager is GDM3, and I would like to replace it with LXDM. The problem is that I'm trying to run # apt-get install lxde and it's not working, what am I ...
2
votes
1answer
3k views

Hold and release CUPS print jobs from command line

Is is possible to hold and release CUPS print jobs from command line? How to do it? I tried cupsenable: sudo cupsenable --release myprinter but it didn't work.
0
votes
1answer
339 views

Where can I see the processes running at startup?

I'm using backtrack5 R2 and sometimes when I log in the information showed says that There is 1 zombie process, where can I see what process is running?
0
votes
1answer
1k views

Upgrade java on Linux Mint 11

I'm unable to use web-based java content due to my version being out of date. %>java -version java version "1.6.0_24" Java(TM) SE Runtime Environment (build 1.6.0_24-b07) Java HotSpot(TM) Server ...
5
votes
1answer
4k views

Enable RTSP in iptables

I'd like to receive a RTSP stream via VLC, but when I try to run sudo -u non_root_user cvlc -vvv -I dummy rtsp://ip:port/x.sdp I get: Unable to determine our source address: This computer has an ...
3
votes
2answers
874 views

Linux software RAID-1 and device name

I want to set up software RAID-1 on my Ubuntu system, and found this example of an /etc/raidtab: raiddev /dev/md0 raid-level 1 nr-raid-disks 2 nr-spare-disks 0 ...
4
votes
1answer
3k views

Connect to hidden Wifi AP with wpa-supplicant?

I have a headless Debian machine, with a Wifi dongle connected. I used to hide the Wifi AP, but now I can't. If I unhide it, some lines in the /etc/network/interfaces will allow me to connect: auto ...
4
votes
3answers
522 views

Want to search for two consecutive lines with at least n characters

I would like to use sed to search for the first part of a text file with consecutive lines with at least n non-space characters. I would like to print from the first of those lines to the end of the ...
17
votes
6answers
39k views

How to stop the loop bash script in terminal?

For example, #!/bin/bash while : do sl done How to terminate this bash script?
1
vote
1answer
158 views

Define length and scale picture

Is there any program under linux where I can do the following: Suppose I have for example a scan of a drawing on a squared paper and suppose that the squares of the original paper have any distance ...
1
vote
2answers
163 views

run bash in script

I want to creat a script to run an another script with a several parameter exp=([1]=bloc [2]=ins [3]=rep [4]=op) for j in ${!exp[*]} do arr=([1]=mem [2]=gen [3]=usr) for i in ${!arr[*]} ...
2
votes
1answer
188 views

Backing up partition using dd and changing files

I'm a Linux newbie. From what I've read, you can back up an entire partition like this: dd if=/dev/sda1 of=/media/external/backup Can anyone tell me if I need to worry about files being changed ...
5
votes
7answers
632 views

Very basic Linux for educational purposes

I want to play with Linux to better understand how it works. Thus, I am looking for a very basic and small Linux to play with. I tried small Linux distributions (which copy themselves to RAM), but ...
1
vote
0answers
108 views

printing to “One Single CUPS Server” can not find queues if 'ServerName' is a CNAME

Running "OpenSuSE 11.4" with "cups-client-1.4.6-6.1.i586" installed, I try to use one single CUPS-server to do all my printing jobs / to manage my queues. In YaST -> printer I've selected [x] Do ...
3
votes
3answers
1k views

Need recommended PCI Wifi Cards for Debian

I want to find a brand and model of wireless PCI card for use in Debian computers. My computer club has numerous computers to refurbish and distribute to people who can't afford to buy a computer. ...
2
votes
2answers
470 views

SMB Mount To Windows Server Appears to Lock up. Any Ideas?

We are running CentOS 6.3 with all the latest updates. (Attempt to resolve this issue) The Server I am trying to connect to is a Windows Server 2008 R2 box. Though this applies to our old SBS'03 Box ...
2
votes
4answers
9k views

dpkg: new pre-installation script returned error exit status 1

I ended up dealing with a software meant to be deployed using dpkg. The .deb package works fine on the test env but fail on staging. Both are running the same version of Ubuntu but I am not 100% sure ...
3
votes
2answers
518 views

Linux: Is there a IPv6 equivalent to the IPv4 kernel option accept_local?

Since linux kernel >= 2.6.33 the kernel option "accept_local" can be modified: /proc/sys/net/ipv4/conf/${interfaceID}/ accept_local - BOOLEAN Accept packets with local source addresses. ...
0
votes
1answer
4k views

Kernel upgrade 2.6 to 3.5.3 on CentOS 5.8 -> switchroot: mount failed: No such file or directory

I upgraded kernel on my CentOS 5.8 from 2.6.18 to 3.5.3 and now it is unable to mount the root filesystem: I could not find any explanation through Google. Can you point me in the right direction? ...
9
votes
2answers
14k views

Fast way to copy a large file on a LAN

I am having some trouble with NFS, and I'd like to try using just plain old TCP. I have no idea where to begin, though. Hardware-wise, I am using an ethernet crossover cable to network two netbooks. ...
4
votes
1answer
171 views

Set window manager's meta key depending on connected Xserver

Situation A linux server is running an xdm supporting XDMCP, it is connected to from various different Linux and OS X boxes using XDMCP via an X -query <server> command. Once the user is ...
2
votes
0answers
336 views

Can I configure specified PEAP in network-manager

Here's the wpa_supplicant.conf file: ap_scan=1 network={ ssid="<SSID Name>" proto=WPA2 key_mgmt=WPA-EAP pairwise=CCMP group=CCMP eap=PEAP phase1="peaplabel=0" ...
13
votes
3answers
14k views

Understanding backtick (`)

I am trying out the command $ b=5; echo `$b`; -bash: 5: command not found but it does not print 5 as it is supposed to. What am I missing here? What does ` (backquote/backtick) mean in bash? seems ...
0
votes
0answers
270 views

A Reboot() command with failover

I'm implementing a Reboot() call in my application. It's an embedded application, so no console, keyboard or power switch. The Reboot() must eventually restart the system no matter what. Ideally, I ...
4
votes
2answers
7k views

How to edit the main menu?

I am trying to edit the main menu. There is no menu editor anywhere. I have installed alacarte which doesn't seem to work. Also, someone suggested to me "right clicking on the menu and clicking ...
4
votes
1answer
756 views

How is this sed command working?

I want to understand, how following sed command is working: sed -nre "/jar$/ { x; d; }; /class$/ { x; p; } Actually it is part of another command to find a particular class file from the given list ...
2
votes
2answers
203 views

How to securely export a device (HDD)?

So I have a Scientific Linux 6.3 (RHEL clone so basically the question is Redhat related) machine called "B" (with an extra "A" HDD besides the system HDD) and a notebook with SL 6.3. They are in a ...
4
votes
2answers
6k views

How to permanently connect to WPA2AES wifi with OpenBSD (through cli)

I have an OpenBSD 5.1 i386 installed. I have no GUI/X. I googled for the answer but I can't find authentic one. How can I connect to a WPA2 PSK/AES wifi network using only the terminal? (so I don't ...
3
votes
1answer
1k views

Fixing scrolling in nano running in tmux in mate-terminal

The problem: I open a terminal (in Linux Mint, so mate-terminal) zsh is the shell Then I run tmux Edit a file with nano Scroll up and down that file with the cursor Issue: When scrolling down in ...
2
votes
0answers
404 views

What keeps happening to my desktop icons?

I'm using Linux Mint 13 Cinnamon for an HTPC. When it originally boots, the desktop icons look like this: After I come back to it some time later, the desktop icons have changed and they look like ...
2
votes
1answer
718 views

Predict filename before downloading from a URL, in shell script

I have a shell script that downloads files from a list using wget, and resumes automatically if there is any non-critical error (because of unstable WIFI during storms). The problem is, I want to ...
2
votes
2answers
38 views

Putting a warning flag on a particular version

I have 4 versions of a file 1.21, 1.22, 1.23 and 1.24. After a month of time I came to know that the version 1.22 and 1.23 have some errors in them. Now I don't want anyone to use those versions. One ...
2
votes
1answer
584 views

Being not admin user how to install local GCC instead of provided?

So I came into my classrom Debian is installed, and gcc 4.1. I want to install (compile from sources is an option - I have time..) for my self GCC 4.7 and adress it in bash as gcc anywhere. Is such ...
6
votes
1answer
259 views

Output redirection and spaces

I'm paranoid about this, but hopefully it's a simple question: Is there any difference between cat file1 | egrep -oP "[Mm]y string" > /home/user/file.txt and cat file1|egrep -oP "[Mm]y ...
3
votes
1answer
1k views

Closing socket connection on running console application

I am testing a chat bot and want to gracefully handle for times when the chat server isn't running so it can come back up when the service is available again. I have the programming handled. My ...
2
votes
2answers
2k views

Sharing Variables across sub shell scripts

I have a Main shell that runs a profile, The profile contains some variables such as Count. When I call the main shell, it loads the profile and then call another shell script. I want that inner shell ...
1
vote
1answer
917 views

Is it possible to make KDE 4 look like Win98?

I found settings which make windows look like in Win98, but cannot change taskbar colors and sizes. Default colors are breaking my eyes. Please, write instructions how to change taskbar and other ...
1
vote
2answers
894 views

Ubuntu Linux and SCO UNIX OpenServer

Can Ubuntu Linux run SCO UNIX OpenServer 5.0.7 applications like filePro? Can I use CTAR to copy application directories from a CTAR backup tape to Linux Ubuntu?
5
votes
1answer
775 views

Alternatives to LVM

I was thinking about alternatives to combine several HDDs together. The only options I know so far are using LVM and/or RAID. The thing is, using LVM, I will most probably lose all data, if one ...
3
votes
2answers
1k views

Capture and broadcast video from web cam

I have server on Debian 6, without Desktop Environment and I have simple web camera. Web camera is defined like /dev/video0, so I can use cat /dev/video0 > ~/photo to get image from it (of course ...
2
votes
1answer
864 views

Problem at booting Windows from GRUB2 menu made by Debian for itself

I've Asus UEFI motherboard with 2 hard disks, (hd0) and (hd1). I managed to make my Debian Wheezy on my second disk bootable using grub-efi and it boots OK. I also have Windows on the first disk, ...
6
votes
1answer
870 views

Is it possible the get the original (best) audio quality when using avconv?

In Feb 2011 I had a similar question: ffmpeg and libmp3lame produces bad audio quality? Now I'd like to know if it is possible to the get the original audio quality from a (flash) video? Every time I ...
2
votes
1answer
245 views

A short way to call my bash script instead of use Source command

My script use and modifies a shell variable. I need to always use: source myscript Is there a shorter way to call this script and have it modify the current shell's environment? It can be ...
2
votes
0answers
769 views

Differences between UNIX, BSD and FreeBSD? [closed]

Could somebody tell me the difference between UNIX, BSD and FreeBSD? I've been using Linux from always, but now I'm curious about FreeBSD and BSD, because maybe there are more "unix-legacy"... What's ...
0
votes
1answer
1k views

Don't snap windows to edge when moving between monitors

I am running Linux-mint 13 with XFCE. When I drag a window to the side of the screen it snaps to the side and fills up that vertical half of the screen. This is great, but I have two graphics cards ...
2
votes
1answer
2k views

Getting webcam to work in Raspberry Pi

I am trying to get a HAMA webcam to work with my raspberry pi with the raspbian os. When I type usb-devices I get: pi@raspberrypi ~ $ usb-devices T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 ...
0
votes
1answer
295 views

what is the best way to convert CRLF to LF and the viceversa for C++ files in my project [duplicate]

Possible Duplicate: How to bulk convert all the file in a file system branch between Unix and Windows line break format? which is the best tool to convert the CRLF to LF for my project in ...

15 30 50 per page