0
votes
0answers
12 views

How does getpid() works?

The getpid() system call returns the process id of the invoking process. How does the kernel figure out which process is invoking the system call ?
-1
votes
0answers
6 views

Can't access 192.168.7.2 on beaglebone black via Chrome

For some time now, I've not been able to ssh to my beaglebone either through apps like putty or via the recommended web browsers. Although cloud9 IDE works fine and I can access the beaglebone over a ...
0
votes
2answers
12 views

X11 forwarding Amazon EC2 significance of sequence number in DISPLAY variable

I am X11 forwarding from an Ubuntu instance hosted in a Amazon EC2 to my localhost. I am able to do the forwarding only when the remote (Amazon EC2) DISPLAY variable is set to localhost:10.0 I ...
0
votes
0answers
15 views

Oh no! something has gone wrong…in kali linux on VB

Ive tried "get-updates" and the "get-install x-windows-system" nither work and it says unable to locate package. ive watched a few videos but they are all the same and all there problems are corrected ...
0
votes
1answer
13 views

How reliable/portable are Nix built-ins/commands (echo, ps, sort, uniq) from Debian to other distros

I've coded a script and am wondering about it's reliability / portability. #!/bin/bash threadsPlease() { ps -mo lwp,c -p $1 | sort -gk 2 | uniq -f 1 } THREAD_LINE=$( threadsPlease $1 | grep -v - ...
1
vote
1answer
16 views

How do I abort fc without executing the command?

The command fc will allow visual editing of the previous command. If I change my mind in the editor, how do I stop the command from being executed. In vi, typing q! or q both result in the command ...
1
vote
2answers
22 views

How to get disk name that contain specific partition

If I know that partition is for example /dev/sda1 how can I get disk name (/dev/sda in this case) that contains the partition ? The output should be only path to disk (like /dev/sda). It shouldn't be ...
3
votes
3answers
52 views

How can I get the raw formatting output of commands in bash?

I'd like to know which control sequences are sent to bash by programs to format their outputs. For example, if I dump man less I can discern which parts are bold or underlined. ...
0
votes
0answers
3 views

trackpad on hp stream sends ButtonPress event 1 and 3 on two-finger click

Kernel version: uname -a Linux lappy 4.1.6-1-ARCH #1 SMP PREEMPT Mon Aug 17 08:52:28 CEST 2015 x86_64 GNU/Linux Type of trackpad: xinput -list ⎡ Virtual core pointer id=2 ...
2
votes
1answer
26 views

Using individual lines from grep outputs

I'm trying to grab lines from grep and sorting them into another command, the command I'm using for grepping atm is as follows (hasn't yet been chopped enough for what I will be using it, but this ...
0
votes
1answer
15 views

Pass shell variables to SQL statement

I want to pass shell variables to sql statement. Both shell script and SQL statement are present in the same script file. I want the values of the variables retMonth, retLastDay and retPrvYear in the ...
0
votes
0answers
11 views

deleted linux Mint from Win 8.1 dual-boot and cannot reinstall linux now

Until yesterday I had a dual-boot of Windows 8.1 with linux Mint 17.2 Rafaella Cinnamon 64bit. Via the terminal I deleted something that I shouldn't and then when I rebooted the PC, linux stuck at ...
0
votes
0answers
8 views

Regenerating default overlay in gentoo

Could not sync portage for some time - realizing it was because I was using git as sync method and the repo was not maintained anymore. They also provided new links so I updated sync-uri option in ...
0
votes
1answer
8 views

Failed to disable shorcut on ubuntu14.04 and debian8

I used: gsettings set org.gnome.desktop.wm.keybindings switch-applications "[]" gsettings set org.gnome.desktop.wm.keybindings switch-applications "[]" to disable Alt+Tab and to disable Alt+F4 ...
0
votes
1answer
8 views

shaping color themes of applications

I am getting headaches from the light flicker (fluorescent bulbs, energy saving bulbs). The same effect has the screen raster which is a consequence of bright dots of pixels and black lines between ...
0
votes
1answer
13 views

Creating debianpackage - the package is of bad quality

I just created a debian package with dpkg-deb --build debtest and when installing the package which containing a simple c-app a warning comes up Lintian check results for ...
0
votes
0answers
10 views

USB drive not working on Windows after connecting it to Fedora

When I connect my USB with FAT file system to Fedora and after that when I try to connect it to my Windows 8 machine, it says that drive is "corrupted or data is unreadable". This error does not ...
1
vote
0answers
17 views

My Linux desktop freezes randomly. What to look for in logs

I have a newly installed Manjaro system and it works fine most of the time but it has frozen a couple of times randomly. What logs should look in (and what should I look for) to try to diagose the ...
1
vote
0answers
5 views

List `yum/dnf` history in ascending (reversed) order

When you run yum history (or dnf history) it will give you the list of action starting from the last, most recent action being on top of the list. In case you have a lot of history steps your recent ...
0
votes
0answers
12 views

How to display/change text in same window in yad

I wrote an application in Linux using YAD (shell script obviously). In my app when I click different buttons text in --text-info changes (should change). but as for now i could do it only by popping ...
1
vote
1answer
21 views

DD to a bigger partition

So I made a backup of /dev/sda1 (NTFS) using: sudo dd if=/dev/sda1 conv=sync,noerror bs=64K | gzip -c >/media/My\ Book/backup/Root20131215 In the meantime I increased the size of /dev/sda1 to ...
0
votes
0answers
10 views

I need to block a certain URL in Squid3

I need to block a certain url on my squid3 proxy server. I can block bbc like this .bbc.co.uk But that blocks ALL of the bbc website I want only to block www.bbc.co.uk/news This is what I use to ...
-3
votes
1answer
22 views

Linux debian based new distro development [on hold]

I try to make debian based distro but confused because the size of debian is already 12 gb then how can i make it small ( i.e lesss than 2 gb ). If possible plz tell me steps what further i should ...
0
votes
0answers
7 views

Using USB intermet through android phone rename dev name

I had a issue every time I connect my phone and enable Internet USB, the assosiated interfaces name changes like enx$(random mac). There's a way to set the name like ppp0 vía udev? I tried vía vendor ...
0
votes
0answers
15 views

Wrong character rendering in internet related applications

See the following image: As you can see, the "ä" in the word "häufigkeit" is rendered with a Tamil glyph. This happens with almost all non-ASCII characters. For example, in the tab bar, after the ...
3
votes
1answer
25 views

How to log out as root user in command prompt after creating non-root user

obviously I am extremely new to Linux, but I'm glad to finally be here...trying to kick windows is tough in some cases ;-) Anyway, I'm trying to follow the following tutorial @ ...
0
votes
2answers
25 views

Is Ubuntu Gnome lighter than original Ubuntu flavor? [on hold]

I'm trying to install linux dual boot on my mac. I'm am looking for something light, and I noticed the original Ubuntu flavor has a lot of add-ons. So my question is, is Ubuntu Gnome lighter?
0
votes
0answers
15 views

Can't show the content of /sdcard of my Android phone from sftp in Ubuntu's Nautilus or FileZilla

I set up a ssh server on Android using SSH Server by Ice Code App. Settings of ssh server: http://i.stack.imgur.com/ZlbzJ.jpg http://i.stack.imgur.com/b1X4i.jpg ...
1
vote
2answers
30 views

Moving /tmp folder to different location. Problems with /tmp not being emptied

I have two harddrives on my computer running Linux Mint. The first is an SSD and has my / partition and the second is an HDD and has my /home partition. I have heard that too many writes to the SSD ...
0
votes
0answers
5 views

citrix - icaclient - no valid ICAROOT directory found

I have icaclient 13.2 installed on funtoo and when launching selfservice, I immediately get an error: No valid ICAROOT directory found When I enter my gateway in, the error comes up again and I ...
0
votes
2answers
11 views

How to set up the gateway for wlan0?

I am using a private hotspot to connect a Raspberry Py to internet. I've setup the password and the ssid in the /etc/network/interfaces file. With this configuration I'm able to connect to the wifi ...
0
votes
1answer
17 views

Is there a default ssh server or ftp server running on most linux distros?

I am quite new to using linux and I am wondering if, in most circumstances there is a default ssh and or ftp server running. I have started a few virtual machines and I have always been able to ssh ...
0
votes
0answers
17 views

Environment Variable not Exporting [duplicate]

I have this script that I'm writing, basically as my own free dynamic dns system (with a bit more manual-ness at the moment). Here it is: #!/bin/bash ...
1
vote
0answers
8 views

Default input device sox

I'm trying to configure sox to use a webcam that I just ordered. I've confirmed that the mic works through the GUI. I ran arecord -l and found that the card, device numbers are 1 and 0, respectively. ...
-4
votes
1answer
52 views

please help…ive waste a lot of time and im freaking out [on hold]

im trying to get kali linux running in my virtual machine everything looks like it installs correctly but instead of booting up kali linux after installation im getting this error message. ive tried ...
1
vote
1answer
14 views

Ethernet Connection not working on Ubuntu 14.04 (with Windows 10 dual boot)

I've dual booted Windows 10 (first) with Ubuntu 14.04. The ethernet works fine when logged into Windows, but when I log into Ubuntu, The Connection Icon (right on the top tray) shows the wireless ...
7
votes
4answers
161 views

How to grep -v and also exclude the next line after the match?

How to filter out 2 lines for each line matching the grep regex? this is my minimal test: SomeTestAAAA EndTest SomeTestABCD EndTest SomeTestDEFG EndTest SomeTestAABC EndTest SomeTestACDF EndTest ...
1
vote
0answers
37 views

How to replace words in a string which has “|” in it

For example line, in this loop in a shell script: for ((k=13;`awk -v f="$k" -F " " '{print $f}' line$i.txt` != "|";k++)) I want to replace the words in the line from 13th position until a "|" is ...
1
vote
1answer
23 views

Rename file names extracting pattern from them

I have a list of file names abc1.doc, abc2.doc and so on. Always in the form text[number].doc. I want them renames to [number].text.doc. How can I do this?
0
votes
1answer
17 views

Installed OpenSSH on Mint 17 but it doesn't seem to be running

So I've installed OpenSSH on Mint rafaela 17.2, but it doesn't seem to be running when using the modified config file. Not sure why service says its up, but I don't have a PID, don't have a listener, ...
0
votes
0answers
7 views

Losing LibreOffice Writer configuration

From time to time, the configurations of LibreOffice Writer is lost for no known reasons. Macros, Shorcut Keys, etc all are lost as if it's fresh new installation. Why does it happen and how can I ...
1
vote
0answers
8 views

multiple systemd-fcsk message on Debian 8.1 boot

Suddenly, when booting my computer, I see several messages like this: [ 16.123575] systemd-fsck[337]: , 408::f6/00, 306::c6/00, 408::f6/00, ... and in the end: Not automatically fixing this ...
2
votes
0answers
9 views

Per user routing on wifi

I'm using vpn but i want to have one user that could access network not through vpn but using my real ip address. The problem is that all solutions i found by quick google'ing, for example this ...
0
votes
1answer
17 views

Is CTRL+4 equal to ^4 or ^$ in caret notation?

This is a problem I have been thinking about. This Wikipedia page suggests that Ctrl+{Symbol} uses the shifted variant of {Symbol} when written in Caret notation. This suggests that CTRL+\ becomes ...
12
votes
2answers
333 views

What does CTRL+4 (and CTRL+\) do in bash?

I just found out by accident that CTRL + 4 closes programs reading stdin input from the command-line. This is how it looks when I type CTRL + 4 or CTRL + / into programs reading stdin ryvnf:~$ ...
2
votes
1answer
21 views

How to reduce bootup time of linux? [on hold]

First of all, I appreciate for taking times. I have a PC with the following configuration: 1- CPU: Cor2Duo 2- Ram: 2 GB 3- 40 GB HDD I just need serial and network. I don't need Xwindow. I just ...
0
votes
0answers
18 views

Creating a Wireless Network Management GUI workaround

I just installed Alpine linux, and it all went as smoothly as i'd hoped, except for the wireless networking (and XFCE's Power button and reboot buttons being greyed out, but that's irrelevant here). ...
0
votes
1answer
18 views

rpm and deffattr

Why does %files ram %defattr(-,root,root,644) %dir %attr(755, root, root) /usr/lib/ram/postd /usr/lib/ram/postd/about /usr/lib/ram/postd/local.conf /usr/lib/ram/postd/local.init.conf ...
1
vote
0answers
4 views

Encrypted boot drops to shell, how to set LVM crypttab consistently? 'ALERT! {logical volume path} does not exist'

I used Luks to encrypt my whole hard drive, and created that sda drive as a physical volume. Under that volume, I create a volume group vg00 with my 3 logical volumes lv00_root, lv01_home, and ...
1
vote
2answers
38 views

How to use ln -s to create a command line shortcut?

I have an sh file that I would like to be able to open from the terminal at any time. I would like to type "studio" into the terminal, and have android studio open I recall using ln -s to do this, ...

15 30 50 per page