0
votes
0answers
3 views

Delete lines from a file which opened in less mode

I have a file (huge size) which cannot be opened in vi but in less mode and I want to delete the lines which I do not required. But I am unable to delete lines from file open in less mode. Please ...
0
votes
0answers
5 views

Make Linux Mint appear as ubuntu

I am trying to install Cloudera Manager 5.x on Linux Mint 17.1 (based on Ubuntu 14.04 LTS) I am a newbie to the Linux game but i dont know why Cloudera ins not installing on this OS Install Commands ...
1
vote
0answers
5 views

Setting environment variables for Gnome on Wayland session only

I'm testing GNOME 3.14 on Wayland on ArchLinux and I would also like to test GTK+ on Wayland. To do so, I can set the following two env variables from terminal export GDK_BACKEND=wayland ...
0
votes
0answers
6 views

Automatically find position, from what last command started in tmux

It is common practice in tmux to start some command, then switch to copy mode, scroll to the position, where is this command started and look over the command output. It is difficult to find the ...
1
vote
1answer
18 views

how handle a path ($1)

I've: /home/wms/mp3/ and /home/wms/tmp/ Inside ~/tmp my script: #!/bin/bash br=64 for a in "$1"*.mp3 ; do ffmpeg -i "$a" -ar 44100 -ab $br "$br""_tmp/${a%.*} ["$br"].mp3" ; done I do: ...
1
vote
1answer
7 views

How to run google chrome as root

when I want to run google chrome as root, a message with this title appears: Google chrome can not be run as root and the body of message is: to run as root, you must specify an alternate ...
0
votes
0answers
12 views

linux mint hangs - how to find a reason?

My Linux Mint system (17 Cinnamon, lenovo g565) hangs up frequently during work (say, 2-4 times a day). It usually looks like a white or black screen (or off if the lid was closed). CPU seems to be a ...
0
votes
0answers
7 views

How do devices add DNS entries on a local network?

I have a D-Link WiFi extender DAP-1320, and somehow, when it gets plugged in, it enables my linux box to resolve "dlinkap.local" to it's IP address. I don't have to add anything to /etc/hosts. In ...
0
votes
0answers
7 views

Highlight current line in tmux

Is it possible to highlight the line containing cursor in copy mode of tmux? This feature is implemented in many code editors.
-1
votes
1answer
7 views

libevent… configure: error: not found, cannot proceed

The following err came when pgBouncer configure. (OS:Ubuntu12.04). Any solutions? checking for library containing gethostbyname... none required checking for library containing hstrerror... none ...
-1
votes
1answer
14 views

Best OS to run QEMU in

I want a os that uses minimal resources but qemu should run properly. I want to run only qemu and no other software. I want qemu to run automatically in full screen as soon as the os boots so I want ...
2
votes
1answer
60 views

Is there a difference between “gain root privileges” and “execute any command”?

I recently opened my sudoers file and noticed the following: # Members of the admin group may gain root privileges %admin ALL=(ALL) ALL # Allow members of group sudo to execute any command %sudo ...
1
vote
1answer
21 views

How to extend root partition (which wasn't created using LVM) in debian linux

I've read this question Can I resize the root partition without uninstalling and reinstalling Linux (or losing data)? before I ask. But I'm not using LVM when creating the root partition, so I'm not ...
2
votes
3answers
68 views

Why is a mirror list important for my Arch install

I'm a Linux beginner looking to learn more by running Arch Linux on my main machine. The "Select a Mirror" section of the Beginner's Guide is simple enough, but doesn't explain why an operating ...
1
vote
0answers
15 views

Convert sysvinit/upstart init scripts to runit

I am trying to migrate a currently VM-based infrastructure to a Docker-based one, using docker-baseimage, which uses runit/runsv to start and supervise system services. Now while it is apparently very ...
0
votes
0answers
9 views

No internet connection after uninstalling gnome [Fedora + Openbox]

I removed gnome(running bare openbox)and now lan and wlan both do not work anymore. I used this to set up my wifi before, but now it does not work anymore and insmod tells that the file already ...
1
vote
1answer
13 views

Switching shells for one cron job

Say I have the following in my crontab: * * * * * command1 -option A; command2; command3; etc. I would like cron to run the commands I have in that line with a specific shell. How can I do that? ...
2
votes
1answer
28 views

goto manual questions

Hey :) I am trying to understand the command goto from the historical Unix v6. I have some questions regarding the goto manual. Here you can find the original manual: ...
3
votes
2answers
34 views

Append unix timestamp to files with space using a script

This script works fine for all files recursively as well but it does not name files that has space in between. For example it throws error for the files "this is a test.txt" or "test file.txt" Any ...
1
vote
2answers
49 views

Iterative Control Flow in Subshelled Script

I have a shell script(A) that is being called by another script(B). In this script(A) I am creating some directories and moving some files as preparatory work for the rest of the script to work fine. ...
0
votes
0answers
5 views

Change default port for PulseAudio (line out, not headphones)

When I boot, PulseAudio defaults to sending output to Headphones. I'd like it to default to sending output to Line Out. How do I do that? I can manually change where the output is current sent as ...
2
votes
3answers
36 views

how to find files based on filename range?

I have some files with numeric names: 2341a.po, 4567211someword.po, 0012.po, etc. I would like to find a set of files based on the numeric range. such as [126 - 363]. Normally I use regular ...
-1
votes
1answer
16 views

How to remove graphical startup in Fedora 20?

I want to have the terminal-like startup/login instead of the graphical one, can someone tell me which config file I have to edit and how to edit it, to achieve that?
1
vote
0answers
13 views

iptables routing through firewall

I have a httpd service running on machine with IP_H, firewall with IP_F and internet browser on desktop with with IP_D. On IP_H I have a rule that only IP_F can access to IP_H: -A INPUT -m ...
1
vote
0answers
16 views

List all files with only arbitrary file path read, but no directory listing nor sudo [migrated]

I have found a path traversal vulnerability that allows me to read any path on the server that does not require sudo. To fully exploit this, I would like to know which files exist in each directory ...
0
votes
0answers
9 views

Grub Installed On Hard Drive after ElementaryOS Install on USB?

I tried to install ElementaryOS on my USB drive using the live install. Upon re-boot, I was prompted with Grub? I checked via the live install and ElementaryOS WAS installed on my USB drive. I did not ...
3
votes
2answers
58 views

bash add path to handle some files

inside ~/mp3 I've some mp3 files. My script: #!/bin/bash br=80 for a in $1*.{wav,mp3} ; do ffmpeg -i "$a" -ar 44100 -ab $br "$br""_tmp/${a%.*} ["$br"].mp3" ; with $1 add the path: myscript.sh ...
1
vote
4answers
62 views

Executing a command within `if` statement and on success perform further steps

I was trying to execute a program which will create a directory on the basis of a complete path provided to it from the prompt and, if the directory already exists it will return an error (for ...
0
votes
1answer
12 views

How to add an alias to a kernel module?

I'd like to add an alias to a kernel module, e.g. make nvidia-343 available as nvidia on Ubuntu 14.10 with Linux 3.18.1, so that it can be loaded under the alias name and so that the alias appear in ...
2
votes
0answers
24 views

iconv cannot replace Ø

It appears that iconv cannot, for example, replace the letter Ø. It was also noted in the second answer to http://stackoverflow.com/questions/3371697/replacing-accented-characters-php I have two ...
-2
votes
1answer
15 views

bash for loop to run ruby scripts

I'm trying to run several ruby scripts from the command line. Here is my code so far: for i in {1..59}; do $("ruby sample$i.rb"); sleep 10; done The purpose is to test all these scripts quickly, ...
1
vote
1answer
16 views

How can i add network interface to LXC Container

I have a question about Network Interfaces in LXC container: In my container,I have by default these interfaces: ubuntu@u5:~$ ifconfig eth0 Link encap:Ethernet HWaddr 00:16:3e:b7:de:91 ...
0
votes
1answer
12 views

Re-entering a screen in different places [on hold]

I am ssh-ed into a server from multiple places, and I want to know how I could get into a screen session from multiple places. I am running something in a screen session, and I want to know how I ...
-1
votes
1answer
25 views

Raspberry Pi backup server (Mac & Windows)

I would like to set up my raspberry pi model B and my 2TB hard drive as a backup server for both my windows pc and my mac. I would like to partition my hard drive such that 300GB is for mac time ...
1
vote
1answer
4 views

Curl 7.27: [ANY]_PROXY set; curl does not resolve the hostname via proxy

I'm using curl with a Socks proxy. The proxy is configured via ANY_PROXY="socks5://NNN.NNN.NNN.NNN.PPPP" I observed that curl resolves the hostname locally, not via the proxy. When requesting a URL ...
-1
votes
0answers
12 views

bcm4352 drivers for linux

I installed ubuntu 12.04 on my dell latitude 3330 laptop. My laptop has a BCM4352 network card. First , I triad to install the STA driver from additional drivers , I wasn't able to get WI-FI to work. ...
0
votes
1answer
12 views

how to export nam of logged in user correctly?

I have the following script here. #!/bin/bash #some initial variables DLURL=https://raw.github.com/horvan/drubuntu/master DIRURL=/opt/.drubuntu #Get files to run the installation wget -O ...
2
votes
0answers
10 views

chromeos - failed to read partition table

I am trying to install archlinux natively on my chromebook. I am following the instructions here, however when I try to create a new disk label for GPT localhost ~ # parted /dev/mmcblk1 mklabel gpt ...
1
vote
0answers
14 views

How to change keyboard layout for skype from docker?

I deployed skype according to this document. However, i do not understand how to add keyboard layout and map.
1
vote
1answer
34 views

how to `echo` 'formatted' man page of some command to text file [duplicate]

When I execute echo `man ls` > tem.txt I get unformatted output in the text file, I mean output without any new lines, just continues sentences. How do I get formatted output ? For example, ...
2
votes
0answers
7 views

Change Zsh theme in Android Studio

I've recently jumped ship to zsh and I'm using the Oh my Zsh! theme blinks. It looks very nice in the OSX Terminal, but it looks very bad in Android Studio's terminal. So my question is is there a ...
0
votes
1answer
19 views

Panic fault when mounting LVM2 volume

I have a CentOS 7 system that I can boot using a live cd. The system HDD's have an lvm2 partition with 2 volumes /root and /home. I can mount /root volume without any problems in the live ...
1
vote
1answer
13 views

How to update kali without internet connection manually?

I have installed kali linux in virtual box with a windows host, and when I try to update kali it completes 5-10 packages and aborts saying connection failed. I have a slow connection and want to get a ...
1
vote
0answers
9 views

Rhel 7 not booting up

I recently installed rhel 7 on my laptop as dual boot (with windows 8.1) in UEFI mode. After the installation I cannot log into redhat. The gnome desktop starts to load and then it goes to a black ...
0
votes
0answers
14 views

cacti snmp ipv6 snmp error

I configured cacti on centos6.4, only ipv6, when snmpwalk command to check a client, the output is normal, but add monitoring host (ipv6) on cacti, appear "snmp error" error, how can I do? Here is the ...
0
votes
1answer
15 views

problem: Restarting linux programs and menus

I use Xubuntu 14.04.1 on my PC. I don't know why but sometimes I turn on PC and see all menus and settings have returned to default settings, for example, wallpaper, language settings or taskbar menu. ...
1
vote
1answer
18 views

preserving colors when piping yaourt through sort

Can sort preserve piped in colors? I'm trying to modify yaourt -Qu | sort so I get color output. Tried googling this but I couldn't find a general way nor a special way to do this for sort.
4
votes
5answers
143 views

What command(s) will feed a tab-delimited text file and cut each line to 80 characters?

I've got multiple-line text files of (sometimes) tab-delimited data. I'd like to output the file so I can glance over it - so I'd like to only see the first 80 characters of each line (I designed the ...
0
votes
0answers
8 views

How to permanently enable scl CentOS 6.4?

I installed a newer version of devtoolset (1.1) and was wondering how I would go about permanently setting these to be default. Right now, when I ssh into my server running CentOS, I have to run this ...
0
votes
1answer
32 views

What is the difference between /dev/sda and /dev/hda? [duplicate]

Sometimes internal harddrives are available as /dev/sda (with subsequent media located in /dev/sdb etc), and other times available as /dev/hda. What is the difference between the two? Does it vary ...

15 30 50 per page