0
votes
0answers
10 views

Determin if the currnet terminal has a dark or light theme [duplicate]

I have several (Bash) scripts that uses ASCII color codes. They look good on my dark themed terminal, however on my colleagues light themed terminal the colors I selected don't look that good. Is ...
3
votes
1answer
22 views

Error with gedit can't save any file

meraj@meraj-SATELLITE-C850-A785:~$ sudo gedit /etc/php5/apache2/php.ini (gedit:16243): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name ...
0
votes
0answers
28 views

Seeing SSH debug messages in Terminal/console

I am seeing "debug3: Received SSH2_MSG_IGNORE" appear in the terminal on a RHEL 6 Linux server. I thought maybe rsyslog had a console entry, but it doesn't. sshd_config has logging at AUTHPRIV, and ...
4
votes
4answers
419 views

Multiple terminals at once without an X server

There is a way to visualize multiple terminals at the same time without running a Xorg session ? I have a really low profile machine that could be great for some basic stuff but has an horrible ...
-1
votes
1answer
43 views

How to control network bandwidth using Linux [closed]

Currently my Internet is really slow. But I want to allocate all resources to a browser that is loading a movie. How do I do that?
5
votes
1answer
72 views

Copy/paste across vim without X

In vim, "+p pastes from the system clipboard. However, when working remotely over SSH on a non-GUI box, this is not available. Is it possible to implement copy/paste in this environment? Merely ...
0
votes
0answers
24 views

'Refresh-save' a file, dock problem?

A bit of context: I followed the bug reports on Docky (link1, link2, and all the other links in these links...) and managed to make Plank recognize IntelliJ IDEA using the right StartupWMClass on the ...
1
vote
4answers
107 views

How to set the process won't be terminated when the terminal stops

[Edit] Make it simple. I invoked java xxx... on Machine A using putty to connect from Machine B. However I cannot reach Machine B. How can I connect Machine A from Machine C to set the running ...
-1
votes
2answers
64 views

Linux Terminal SSH Username Change

I want to connect via ssh to my Ubuntu server from my Linux PC. Xterm uses my Linux PC username for the login. I've another username on the server. It's not the same name like on my Linux PC. How can ...
3
votes
3answers
87 views

stout can not append to large files

I have Ubuntu 13.10. I have a keylogger to help me remember what I did. Running keylogger prints output to the terminal when I run it like this: keylogger I added it to startup like this: ...
0
votes
3answers
105 views

Open a terminal with a login prompt [closed]

I want to open a terminal (xterm, gnome-terminal, tilda, whatever) and have it prompt for a username and password to login as. I thought this would be simple but all my Google results are polluted ...
0
votes
0answers
24 views

Convert rgba color value to a Terminal supported color

Randomly I will take the following example: rgba(122, 143, 186, 0.54) How can I convert this color to the closest Terminal supported color?
1
vote
1answer
75 views

Can I enable framebuffer support in xterm [closed]

Can I enable framebuffer support in xterm? If yes, how can I do it? If no, what terminal emulator have a framebuffer support?
0
votes
3answers
102 views

Switch user on terminal

I'm switching user using command: sudo su - userName On my terminal I always have: user@user directory $ (some command) But when I switch user I have only : $ (some commands) It is hard to ...
-2
votes
2answers
137 views

Run command automatically after login?

Another quick question. I have installed f.lux on Ubuntu 12.04, however the program refuses to work unless I run a command xflux -l [longitude] -g [latitute] -k [temperature] So I've created an ...
1
vote
0answers
220 views

How to set a background image for urxvt?

How do I set a tiled background image in urxvt? I have tried the following alternatives in my .Xresources file: URxvt*backgroundPixmap: /home/jgg/Pictures/tiles/escheresque_ste.png;style=tiled ...
0
votes
0answers
36 views

logname not working under X session

I would like to find out the name of the user at the end of a sudo-chain. The exact tool for this is logname or also who am i works as well. My problem is that while over SSH or tty1 (Ctrl+Alt+F1) ...
2
votes
4answers
179 views

Incrementing a variable each time the system boots up

The idea is to initialize a variable and set it to 0. Then create a script that executes on boot and increments that variable by 1 each time the system boots up again. Sounds simple enough right?
0
votes
2answers
75 views

Command to restore filesystem to state after installation of the OS

How can I wipe all the changes to the filesystem since installing the OS? It's not that I want to destroy the files because they contain sensitive data or anything like that; I just want to start over ...
7
votes
1answer
201 views

Why do we need so many terminal emulator packages and what is their use?

This is something that has been so confusing to me for a long time. I am using Linux but I have gaps in my understanding of certain aspects and one is about the terminal. As I came to understand it ...
1
vote
0answers
78 views

Which process is occupying a certain pseudo terminal pts/X?

On Linux: Normally pseudo terminals are allocated one after the other. Today I realized that even after a reboot of my laptop the first opened terminal window (which was always pts/0 earlier) ...
0
votes
1answer
45 views

Zenity refuses to work in background

I'm trying to create a background bash script which creates a popup in certain circumstances, however, my code only works when run manually in a terminal (e.g. not in the background). I've tried ...
1
vote
1answer
116 views

What linux server settings allow my long running processes to keep running after the terminal is closed/terminated?

In previous jobs and experiences, I used screen or nohup to run my long running jobs from my terminal screen. Most, if not all of my previous jobs' servers dropped you if it didn't detect any ...
2
votes
2answers
89 views

Why does the bell character have a limit?

If I repeatedly execute echo -e "\a" it will only sound on regular intervals rather than every time I execute the command. I've tried shortening the duration using xset but this doesn't seem to ...
-2
votes
1answer
52 views

Need some type of shortcut [closed]

So first thing, I am not good Linux really beyond mildly advanced commands. I need some type of short cut from one fake folder called SD-card to a real folder called system/advt so whenever something ...
-4
votes
1answer
57 views

Why is learning command line imporatant? [duplicate]

I googled this question many times but could not find a good reason why the knowledge of command line is important.Some say GUI cannot be used always but there are no examples supporting their ...
0
votes
2answers
60 views

Accessing Windows Box from Linux Terminal SSH

I am familiar with accessing linux from windows, but how can I go about accessing files on a windows box from a linux terminal via ssh? I'd like to stay away from RDP and just grab files via the ...
1
vote
1answer
127 views

How to change permissions from root user to all users?

I created a folder on the command line as the root user. Now I want to edit it and its contents in GUI mode. How do I change the permissions on it to allow me to do this?
1
vote
1answer
400 views

How do I reload ~/.dir_colors?

I copied /etc/DIR_COLORS to ~/.dir_colors because /etc/DIR_COLORS.xterm was being used and colours in ls --color=auto were too dark. Now, how do I get this file to take effect immediately? (i.e. ...
4
votes
1answer
191 views

Idle terminal safe character

I'm using iTerm2 on a Mac to do Linux work. In order to avoid losing terminal connections, I turned on "When idle, sent Ascii code". The default is 0. This works like a charm to keep connections ...
6
votes
3answers
4k views

what is stored in /dev/pts files and Can we open those?

I am curious to know that what is stored in /dev/pts/ files . Can we open those files ? According to my knowledge /dev/pts files are created for ssh or telnet session .
2
votes
1answer
60 views

Getting IO privileges in Linux

I have installed flashrom software. When i try to run sudo flashrom command it gives me "Could not get I/O privileges (Operation not permitted). You need to be root" error. Also I tried su command to ...
4
votes
2answers
481 views

Capturing Screenshot of terminal application via shell script?

Problem Run iftop for 5 seconds, capture the screenshot and save it to a file. iftop is a beautiful program for visualizing network traffic, but it doesn't have a batch mode where I can run it for ...
0
votes
2answers
10k views

Yum update error: Could not retrieve mirrorlist

I'm trying to do yum update. This is the error I'm getting. sudo yum update Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile Could not retrieve mirrorlist ...
1
vote
4answers
200 views

How to change color of a character while tailing and tr

I regularly use this command line but I would like to change the color of the "|" to green in the output. Does anyone know how I can accomplish this? tail -f file.log | tr '\001' '|' | grep TEST
1
vote
1answer
657 views

The command ` ls -ltu ` fails to list folders/files based on last accessed time

First on your linux desktop create 2 folders. a b Now run this in the terminal ls -ltu the result is drwxr-xr-x 2 root root 4096 Aug 30 20:33 b drwxr-xr-x 2 root root 4096 Aug 30 20:33 a ...
2
votes
1answer
4k views

Change the number of rows and columns in the TTY [duplicate]

I want to resize the terminal which comes up when you press CtrlAltF1 (or F2,F3,...). 25x80 is small for a 24" screen. Tried using stty, but the commands stty columns 200 and stty rows 50 does not ...
4
votes
1answer
243 views

Send stdin to console and compressed file

I'm running a propietary program which generates text output. Kind of like a logger. logger I'd like to both view this output on the terminal to watch the server breathe, and send it to a text ...
0
votes
0answers
66 views

Root has no permission on virtual console screen devices

Even being root I can't do the following: # cat /dev/vcs1 cat: /dev/vcs1: Operation not permitted And the rights are set correctly: # ls -o /dev/ crw-r--r-- 1 root 7, 1 Aug 5 22:00 vcs1 ...
0
votes
2answers
76 views

getting a gui program to start on boot

I have a C program I wrote for debian on the raspberry pi that asks the user to enter a number, 1-4 which it then stores in a configuration file. This only happens if the configuration file is ...
3
votes
1answer
432 views

Difference between a.out and ./a.out

My Confusion a.out is the output of the programs which I execute in my Ubuntu 12.10. In Red Hat system when I execute a.out in the terminal it executes. While in Ubuntu I have to execute ./a.out to ...
1
vote
1answer
971 views

Kali Linux shows strange line of code using Bash command “set”

I have Kali8 installed - it is a Debian/GNU Linux ("wheezy") based distro - and when I use the Bash built-in command "set" to check my vars from X, like in LXterminal, everything works fine, but when ...
7
votes
1answer
226 views

How do I prevent system information from being displayed on a terminal?

I'm working on a curses GUI that is supposed to start up automatically on boot-up in the default linux terminal (I have no X server installed). I have this working great, but I have a problem where ...
0
votes
2answers
138 views

Why are there empty lines in the output of my command?: find ~/x/y/ | shuf > ~/Desktop/z.txt

As it turns out the reason for this problem was one filename with several newlines. (No idea how that happened.) find ~/x/y/ | shuf > ~/Desktop/z.txt This command works pretty much as expected ...
1
vote
1answer
215 views

Creating a terminal device for interprocess communication

I'd like to know how to create a terminal device to simulate a piece of hardware connected through a serial port. Basically, tty device with a certain baud rate that can be read from and written to ...
2
votes
2answers
4k views

How to install tar file (jhead) on Mac or Linux machine

I'm new to Linux and tar balls and was wondering how to properly install them on a Mac or Linux machine. I would prefer to know how to install on a mac but I just need some help understanding them. I ...
4
votes
0answers
73 views

why . and .. are listed when ls -a command executed? [duplicate]

When I execute the ls -a command, all files and folders in that directory listed, as well as . and .. are listed too. Why is that? Are they a file or folder?
10
votes
1answer
732 views

Why don't Linux terminal emulators support full colors?

I just upgraded my gnome-terminal to use 256 colors, yet I am a bit puzzled on the reason why a terminal emulator can't support the full palette any modern desktop environment provides. I guess ...
2
votes
1answer
226 views

What's those underscore commands?

When I tab tab _ in terminal, Bash suggests 206 posibilities. I tried to run one of them _git_rm but nothing happend, what are they? Here is a screenshot:
3
votes
1answer
1k views

Confused about Debian error message from su

On Raspbian, the Debian distro aimed at RPi, I end up getting the following error: $ sudo su -l root -c /bin/bash bash: cannot set terminal process group (-1): Inappropriate ioctl for device bash: no ...