date
int64
1,220B
1,719B
question_description
stringlengths
28
29.9k
accepted_answer
stringlengths
12
26.4k
question_title
stringlengths
14
159
1,369,503,686,000
I am in the directory foo which contains the subdirectories bar1 bar2 and bar3 and nothing else. I would like to act pushd on foo, bar1, bar2 and bar3 in one command, however I am encountering difficulties: find `pwd` | xargs pushd returns xargs: pushd: No such file or directory I tried to circumvent the problem w...
You’re very close.  You can do what you want with while read line; do pushd "$line"; done < <(find "$(pwd)" -type d) The problem with your command is that pushd, like cd, must be done in the main (parent) process to be useful, and (with some variation based on how your system is set up), the commands in a pipeline ru...
How can I pushd a series of directories in one go?
1,369,503,686,000
I have used pushd to move about to various directories and now if I run dirs -v I get: 0 ~/Desktop 1 /etc 2 /var/log 3 ~/Downloads 4 /tmp How can I popd to a specific directory in the middle of the stack?, e.g option 2: /var/log man bash says +n Removes the nth entry counting from the left of the lis...
cd "`dirs +<number>`" where <number> is 0 or 3 or something else. In any case, I recommend you check out a cd wrapper such as http://davidcorne.com/tag/cd/ , which pushes onto the dir stack in the background and allows you to do cd -- instead of dirs -v and cd -<number> to get you into the directory you want. It als...
How can I popd to a specific directory?
1,369,503,686,000
I would like to share my directory stack (the one accessed with dirs) across sessions and tmux panes/windows. In the zshbuiltins man page I have found autopushd to add every directory I switch into to the stack. But there does not seem to be a native way to have the stack persist and share it. Do I have to save the st...
Generally speaking, this is not a good idea. Consider this scenario: Session one wants to temporarily change directories, so it pushes the current directory, expecting to pop it later when it is finished with the new directory. Session two tries the same thing. Session one tries to pop its original directory off the ...
Persistent directory stacks across sessions in zsh
1,369,503,686,000
I would like to be able to programmaticly detect when my pushd stack is non-empty, within a bash shell. Is there any way to detect this? Something akin to $SHLVL would be nice. But so far, the only solution I've found is to wrap pushd and popd with aliases that parse the output of the originals to detect the depth. ...
You can check DIRSTACK length: $ [[ ${#DIRSTACK[@]} -gt 1 ]] && echo dir stack non-empty Note that you can not use this method if DIRSTACK is unset.
Detect pushd depth in bash?
1,369,503,686,000
I've been using pushd and popd for a long time while writing bash script. But today when I execute which pushd, I get nothing as output. I can't understand this at all. I was always thinking that pushd is simply a command, just like cd, ls etc. So why does which pushd give me nothing?
popd and pushd are commands built into Bash, they're not actual executables that live on your HDD as true binaries. excerpt bash man page DIRSTACK An array variable (see Arrays below) containing the current contents of the directory stack. Directories appear in the stack in the orde...
Why can't I which pushd
1,369,503,686,000
I have a script which I source while in bash. It does various things and retains the $PWD I was in before sourcing it. pushd ~/.dotfiles >/dev/null || exit 1 # Do various things popd >/dev/null || exit 1 The script runs (mostly) fine in zsh too, but when I source it from the ~/.dotfiles location, I end up in the pr...
pushd and popd are intended for interactive convenience. They are neither reliable nor useful in scripts. You're seeing the effect of the pushd_ignore_dups, which is off by default but you've apparently enabled in your configuration. Another potential problem with pushd and popd is that you need to make sure that you'...
Confusing pushd/popd behaviour when sourcing script in zsh
1,369,503,686,000
I want to push a directory onto the directory stack in order to refer to it using "tilde shorthand" (eg. ~1 refers to the second entry in the directory list), but I don't want to actually switch to the directory. In bash, it seems this can be done using the -n flag to pushd. What's the equivalent in zsh?
You can edit the dirstack variable. function insertd { emulate -L zsh typeset -i n=0 while [[ $1 == [+-]<-> ]]; do n=$1 shift done if (($# != 1)); then echo 1>&2 "Usage: insertd [+N|-N] DIR" return 3 fi dirstack=($dirstack[1,$n] $1 $dirstack[$n,-1]) } If you want to add this behavior to ...
What is the zsh equivalent of "pushd -n" in bash?
1,369,503,686,000
Without Oh-My-Zsh, I can pushd two identical path: $ dirs ~ $ pushd Desktop Desktop ~ $ pushd ~ ~ Desktop ~ With Oh-My-Zsh: $ dirs ~ $ pushd Desktop Desktop ~ $ pushd ~ ~ Desktop How do I disable this? I want the original Zsh behavior.
(Insprired by this answer) It is set in $ZSH/lib/directories.zsh: setopt auto_pushd setopt pushd_ignore_dups auto_pushd makes cd behave the same as pushd. However, this would result in an directory stack overflow if you keep changing directory, so they set pushd_ignore_dups as well, to limit the stack. This is not a ...
Oh-My-Zsh remove duplicated path in directory stack
1,369,503,686,000
I'm pushing directories to my stack using a while loop that reads the contents of a file. I've tried two approaches that should be equivalent, but they behave different. Approach 1 export DIRSTACK_SAVEFILE="/path/to/file" # file contains full paths to folders in each line while read line ; do pushd -n "$line" done...
As documented in man bash under Pipelines: Each command in a pipeline is executed as a separate process (i.e., in a subshell). Therefore, the changes to the current working directory happen in a subshell which doesn't influence the current working directory of the parent shell. You can run the last element of a p...
`pushd` inside a while loop from file contents does not behave the same depending on read method [duplicate]
1,369,503,686,000
I have seen How do I use pushd and popd commands? , and I am aware that with pushd <dir> I would push <dir> to the directory stack, with popd I would pop the top directory from the directory stack - and with dirs -v I should be viewing/listing the directory stack; the cited post gives this example: $ pushd /home; pus...
Comment out the alias line in your ~/.bashrc with a #. In your current session you can use unalias dirs to remove this alias. Check again with type dirs.
dirs -v does not list the directory stack?
1,369,503,686,000
I am using zsh in Babun (Cygwin with oh-my-zsh and some extras). I noticed some odd behavior, it looks like cd is behaving like pushd? { ~ } » mkdir foo { ~ } » pushd foo ~/foo ~ { foo } » popd ~ The above is fine and expected, but see the below. { ~ } » cd foo { foo } » dirs ~/foo ~ I tried checking if there w...
I see now. oh-my-zsh does setopt auto_pushd which is described here as: AUTO_PUSHD (-N) Make cd push the old directory onto the directory stack.
Why is cd appending dirs like pushd?
1,369,503,686,000
I have aliased pushd in my bash shell as follows so that it suppresses output: alias pushd='pushd "$@" > /dev/null' This works fine most of the time, but I'm running into trouble now using it inside functions that take arguments. For example, test() { pushd . ... } Running test without arguments is fine. But wit...
Aliases define a way to replace a shell token with some string before the shell event tries to parse code. It's not a programming structure like a function. In alias pushd='pushd "$@" > /dev/null' and then: pushd . What's going on is that the pushd is replaced with pushd "$@" > /dev/null and then the result parsed. ...
$@ in alias inside script: is there a "local" $@?
1,369,503,686,000
In Ubuntu 16.04 with Bash I had a problem when I didn't have a convenient way to upgrade all my WordPress components (core, translations, theme, plugin) and I used the following code to solve it: cat <<-EOF > /etc/cron.daily/cron_daily #!/bin/bash drt="/var/www/html" for dir in "$drt/*/"; do if pus...
How does the dir variable resembles the asterisk (*) coming a little bit after it in the same line (how is the Bash interpreter knows that $dir [iteratively] represents each directory inside /var/www/html/? That's just how Bash shell globs work/behave, but you are mistaken about one thing: dir/* is a glob which incl...
How does pushd work?
1,369,503,686,000
I have a file named filename.sh in different directories. I am trying to simultaneously submit this file to run on a number of cluster nodes. I need to find this file wherever they may be, cd into their containing folder and execute the command "sbatch run_code.sh" This is what I have tried. find . -mindepth 1 -type f...
Sounds like you want: find . -name filename.sh -type f -execdir sbatch run_code.sh {} ';' -mindepth 1 is superflous. It excludes ., but . is excluded anyway by both -type f and -name filename.sh. -execdir (from BSD), is not a standard find predicate, but chances are that if your find supports -mindepth (also non-stan...
how to "execute command on file in multiple subdirectories within containing folder" i.e cd into each subdirectory containing file and execute command
1,369,503,686,000
I have pushd several pathnames, so my dirs stack has multiple stack frames. Now I would like to empty the stack, without changing my current directory. I wonder how to do that? Thanks.
Since dirs is a builtin, you can get help for it by running help dirs. Doing so will inform you about the -c option, which clears your directory stack. dirs -c
How can I empty the `dirs` stack, without changing my current directory?
1,369,503,686,000
pushd push a directory into the directory stack, and change the working directory. I guess that is all we need. But besides, why does pushd always output the stack to stdout? I think that is unnecessary and add clutter to the screen, or I miss its point. Thanks.
pushd and popd are primarily providing a convenient way to navigate directories interactively. In scripts, cd is more often used. As an interactive tool, pushd gives the user feedback about the current state of the directory stack whenever a new directory is successfully pushed onto it. The cd command is sometimes wra...
Why does `pushd` always output the stack to stdout? [closed]
1,448,949,666,000
I am trying to extract an SFX file under Linux Mint 15 (64 bit) but it's not working. I've done chmod +x on the file and tried to run it like a script with no luck (it gives me an error that there's no such file or directory. What's interesting is that this worked for me when I was running Linux Mint 14 (64 bit). I fo...
Use unrar to extract files from RAR SFX archives. Like this: unrar x filename.sfx
Extracting SFX files in Linux
1,448,949,666,000
At best I would like to have a call like this: $searchtool /path/to/search/ -contained-file-name "*vacation*jpg" ... so that this tool does a recursive scan of the given path takes all files with supported archive formats which should at least be the "most common" like zip, rar, 7z, tar.bz, tar.gz ... and scan the f...
(Adapted from How do I recursively grep through compressed archives?) Install AVFS, a filesystem that provides transparent access inside archives. First run this command once to set up a view of your machine's filesystem in which you can access archives as if they were directories: mountavfs After this, if /path/to/a...
Find recursively all archive files of diverse archive formats and search them for file name patterns
1,448,949,666,000
This is a more specific question of How to open rar file in linux (asked in 2015) that had no detailed answer for p7zip to open RAR files at this time of writing. p7zip is essentially the 7-zip archive manager on Linux, except that does not include the graphical interface. p7zip should be able to open RAR files like 7...
p7zip is the Unix command-line port of 7-Zip, which has many supported formats. p7zip supports RAR format for unpacking or extract only. User can either download the binaries and source code or install the packages provided by Linux distributions and other supported systems. With the binaries and source code, p7zip is...
How to use p7zip to open RAR files?
1,448,949,666,000
I have a directory full of rar files, with extensions ranging from .r00 to .r30. It also has one file with .rar extension. From all of this must come a video file. How do I do it?
If you only have rar program, the command x would accomplish the task: rar x <part_name> The program automatically searches for the appropriate parts of the archive. Note: sometimes the naming can be <archive_name>.part##.rar.
Working with rar files
1,448,949,666,000
I have noticed that Nautilus (GNOME Files) can extract some RAR files that cannot be extracted using free packages like unrar-free or file-roller via CLI, nor using GUI tools like Engrampa or Xarchiver. Don’t know why exactly. No passwords involved or anything unusual, just (what seems like) regular RAR files. Maybe d...
Nautilus uses libarchive to process archives; this supports some RAR formats without any external helpers. bsdtar is a command-line tool using the same library; in Debian it’s packaged as libarchive-tools.
What free tool does Nautilus use to extract RAR files?
1,448,949,666,000
I've got a 20GB RAR file to extract with a password on Debian Linux Google Cloud VM. I first tried sudo apt-get install unrar but the following output was given: Reading package lists... Done Building dependency tree Reading state information... Done Package unrar is not available, but is referred to by another...
You can extract RAR archives, including RAR 5 archives, in Debian with unar, which is available in the main repositories. To be able to install the unrar package, you need to enable the non-free repositories (non-free in the “free as in freedom” sense): sudo sed -i.bak 's/buster[^ ]* main$/& contrib non-free/g' /etc/a...
How can I extract a RAR file on Debian?
1,448,949,666,000
I am using Linux Mint 14 Nadia . Earlier whenever I right clicked any folder I got options like Extract it, Compress etc. But now I am not getting them . Probably I changed/deleted some of the utilities . I have nautilus installed on my system . Is there any way I can get those 2 features back in the options list whe...
From the Linux Mint Forum I found the following post, Extract, Compress in right-click menu. According to that post you have 2 options: Use Caja instead of Nautilus (I believe Caja is just a fork of Nautilus) Install File Roller + xarchiver According to that post these are the steps required to install File Roller: ...
How to get extract/compress option on right clicking?
1,448,949,666,000
I have a lot of rar files - Folder/ --- Spain.rar --- Germany.rar --- Italy.rar All the files contains no root folder so it's just files. What I want to achieve when extracting is this structure: - Folder/ -- Spain/ ---- Spain_file1.txt ---- Spain_file2.txt -- Germany/ ---- Germany_file1.txt ---- Germany_file2.txt --...
I have a script in my personal archive that does exactly this. More precisely, it extracts e.g. Spain.rar to a new directory called Spain, except that if all the files in Spain.rar are already under the same top-level directory, then this top-level directory is kept. #!/bin/sh # Extract the archive $1 to a directory ...
Unrar to folder with same name as archive
1,448,949,666,000
I enjoy using squashfs for compression because of the simplicity of mounting them as loop devices to access the files inside. I have a lot of rar, tgz and zip files that I would like to convert to squashfs. In this answer, I saw that it is possible to use a pseudo file when compressing a disk image to squashfs to avoi...
You could mount them with fuse-zip or archivemount and then create the squashfs file from the mount point. For example, this would work for a zip file: $ mkdir /tmp/zmnt $ fuse-zip -r /path/to/file1.zip /tmp/zmnt $ mksquashfs /tmp/zmnt /path/to/file1.squashfs $ fusermount -u /tmp/zmnt
How to convert from rar or tgz to squashfs without having to extract to temporary folder?
1,448,949,666,000
Suppose you have a multipart rar file, say file.part1.rar, file.part2.rar, file.part3.rar. I know that I can extract only the first parts using for example unrar e -kb file.part1.rar However assume that I have only file.part3.rar and not part 1 and 2. Is then there a way to extract the content of part 3? Is this pos...
it seems to be impossible, cause multiparted rar archive contents metadata about all the files inside all the parts of an archive. and even if you tries to unrar a single file (movie) not from the beginning, it will fail, cause file contains metadata of itself in the beginning, and even video stream is a container wit...
unrar part of a multipart rar file
1,448,949,666,000
I had three RAR files in the same directory: file1.rar, file2.rar and file3.rar. I wanted to extract them with one command using expansion, bearing in mind that asterisks have to be escaped in arguments for unrar, unzip, 7z, etc. I tried this command: unrar x file\*rar It resulted in: UNRAR 5.00 beta 8 freeware C...
It doesn't work in 5.2.7 (newer version) either. I'd suggest trying unrar x file\*.rar, note the dot before rar. That goes down a slightly different code path, at least in 5.2.7, and it works in 5.2.7. Why? Well, after a few minutes of looking through unrar's source (take a look at match.cpp if you want to try!), I ca...
Why can't unrar expand this expression?
1,448,949,666,000
I want to extract only a specific file type using unrar. With unzip command I can extract all archives with a specific extension. unzip "$FileName" *[.txt,.TXT] How can I do the same with unrar? Do I need to iterate through every file?
unrar x "$FileName" \*.txt \*.TXT In bash you can also use: unrar x "$FileName" \*.{txt,TXT} Bash transforms this to the former form.
Unrar specific files using wildcards
1,448,949,666,000
When bash-completion is loaded, unrar x completes after pressing tab to RAR-archives in the directory. But for multipart archives with the new naming convention, like Filename.part01.rar Filename.part02.rar Filename.part03.rar it doesn't see any difference between the first archive ending on .part1.rar, .part0...
Look at https://github.com/scop/bash-completion/pull/12/files to get a sense of how this filtering can be done. Basically you will need to post-process COMPREPLY[] in some ways to get rid of the mis-completions. You can add a wrapper around too: _mycomp_unrar(){ local i _unrar "${[@]}" # use the old one # ...
Bash completion for `unrar`
1,448,949,666,000
I am used to raring files -- but I am looking for something faster. I see that there is a "split" command. How does this command compare to rar? What is are the differences between split and rar?
split is a traditional UNIX tool, that does one job only—splitting files. If you had a bunch of files to archive to individual disks, you might do it like this: ____________________ | FILESYSTEM | _________ ____________ | dir1/ dir2/ | tar | | gzip ...
What are the differences between split and rar?
1,448,949,666,000
I have many not compressed rar multi-part archives on my ftp server. Under Windows, with 7zip I have no problem with extracting part1 when I have not downloaded part2 from server yet. There is notification about errors, but if some files were complete in part1 - they extract correctly and I can use these files. Under ...
With unrar, you have the switch -kb (“keep broken)”, which doesn't erase the extracted files even when there are errors.
Extract incomplete RAR archive under linux (desktop)
1,448,949,666,000
I'm dealing with a large amount of password protected .rar files which need to be repacked to remove the password. (The password is known.) I was wondering if there was a script to batch/recursively extract & repack them while keeping the same name and directory structure that they had before.
I would split this task up in two elements, the first is that you need a script rerar that extracts and builds the rar and takes the name of a rar as parameter: #!/bin/bash R="$PWD"/"$1" # if realpath is available you can use R=$(realpath "$1") tmpdir=$(mktemp -d --suff rerar) pushd "$tmpdir" # extract preservi...
Batch Extract & Repack .RAR Files
1,448,949,666,000
I have a 100+ rar files which I want to extract using find's exec command. I'd like to see the usual rar output so I can monitor its progress, and also to pipe the output to grep and then on to wc to count the 'All OK' lines (which rar prints if an archive is extracted successfully). I tested with the following comman...
tee can send to stdout and to a file. In your example you send both outputs to stdout (which in this case is the pipe). One way around this is to use a named pipe to capture the output: mkfifo p cat p & # this blocks until something is written to p find -iname 'TestNum*.rar' -execdir rar e '{}' \; | tee p | grep ...
Send find's output to stdout and piped to grep
1,448,949,666,000
This is running 64-bit rar on an aws ami linux ec2 instance (4 cpu cores, Intel(R) Xeon(R) CPU E5-2666 v3 @ 2.90GHz, 8gb RAM). I have a folder with 8568 files. When I create a rar file and add all the files to it, it takes about 3 minutes before it begins processing adding the files. Is this normal? Do you know what ...
After running a reduced-scope test, I see that the rar binary is calling stat on each file 7 times before finally opening the file to read the contents. I would have chased down the behavior in the source code, but it's not available (in debian, at least). $ strace -o rar.strace rar a -r -iddpq -ierr path/to/compress/...
long delay in (win)rar before adding files
1,448,949,666,000
I created a custom action in Thunar for extracting RAR archives with unar: unar %N It works, but it doesn’t inform me when it’s done. Is it possible to show some kind of indicator (e.g., a progress bar) while it’s extracting? Or a notification as soon as it’s finished?
You could always run the command in a terminal. Your notification is when the terminal closes itself :). It will also show whatever progress / activity indicator is provided by the unar command. gnome-terminal -x unar -- %N I have not tested whether xfce4-terminal accepts the -x option. xterm -e unar -- %N uxrvt sho...
Inform me when extraction of RAR archive (with unar via Thunar custom action) is finished
1,448,949,666,000
The file test.rar can be opened with 7z e test.rar. When to double click on test.rar with Xarchiver,an error info occurs as following: How can i add support for rar file with Xarchiver ?
sudo apt-get install rar unrar Once installed ,right click on the rar file.
How to open RAR file with Xarchiver?
1,448,949,666,000
I have only enabled main component of Debian repository (Debian 8, Jessie) yet file-roller (Archive Manager) can extract a RAR compressed file. I have the following programs installed: file-roller, p7zip-full but I do not have these programs on my machine, p7zip, p7zip-rar, rar, unrar, unrar-free. What is the backend...
Posting don's comment as a potential Answer: It's using unar (from unarchiver) as of v 3.6
Why can file-roller extract rar files in Debian 8?
1,448,949,666,000
Prior to reinstalling VPS and upgrading from Debian 6 to Debian 8, I have archived /etc/ folder. Now, I am trying to extract and overwrite everything, but somewhere in the process I get this message Extracting /etc/rc2.d/K01sendmail OK Extracting /etc/rc2.d/S03maldet ...
Ouch, are you really using rar? I don't think rar properly stores symbolic links, ownership and permissions. In /etc, that would break many many things. /etc/mtab is just one that happens to be a symbolic link to a read-only file, so you got an error for this one — but many other symbolic links were saved as regular f...
Cannot close the file /etc/mtab when restoring /etc with rar
1,448,949,666,000
I try to install rar using yaourt, problem is I get +5k results and can't filter out the package containing rar. Neither |grep helps nor |head, the first hundreds of lines are lib'rar'ies. What could I do to get around this?
You use an AUR helper that actually works and is not fundamentally insecure: cower -s '^rar$' aur/rar 5.3.0-1 (668, 6.91) A command-line port of the rar compression utility
finding rar in yaourt
1,448,949,666,000
Here is an example of what I am trying to do: I have a folder (called 'dir') that contains the following: dir |_sub1.rar |_sub2.rar |_sub3.rar I will cd ~/ to dir and want to run a command that will extract all .rar files and place the contents into a folder with the same name. sub1.rar should be extracted to sub1, s...
set -e cd dir for rar in ./*.rar do [ -f "$rar" ] || continue dir=${rar%.rar} mkdir "$dir" ( cd "./$dir" unrar x "../$rar" ) # maybe rm "$rar" done Nothing clever here. Assumes you have an unrar command that takes an x option to do the eXtract. Just run a loop over the things matching ./*.rar, m...
Unrar all .rar files in a directory to a folder with the same name
1,448,949,666,000
unrar used to be available on EPEL repository. But now, it is gone. I noticed that CERT Forensics Tools has it now, then I installed it, unrar e [my file] works but using Archive Manager (GUI) doesn't work with rar files. I also tried unar as this article suggested. Same issue. Any clue how to get it work with Arch...
Download rar from here. Then do: tar xzvf /pathtofile/rarlinux-your_version.tar.gz ln -s /pathtofile/rar/rar /usr/bin/rar ln -s /pathtofile/rar/unrar /usr/bin/unrar The command to decompress with unrar is: unrar x filename.part1.rar or rar rar x filename.part1.rar Make sure all the files are in the current director...
Extract Rar File on CentOS 7?
1,448,949,666,000
I am trying to extract a muli-part rar archive. When I extract the very first file of the archive, several different folders get created and in some of them not any files exist. I viewed all the rar archive contents by: unrar l filename_n.rar, and for the very last one of them, the output was something like the follow...
Those are FAT-style attributes. A means “archive”, and is used to track files that need to be backed up. D means directory, which also explains why the entries have a zero size. As far as the strange dates and times go, as I understand the RAR technote, directory entries don’t necessarily even have an associated times...
RAR archive files yield incomplete extraction results
1,448,949,666,000
I need a solution to create Rarfiles with old style, like *.r00 ... since version 5 it does not work with -vn switch is not supported for RAR 5.x archive format. ...
According to the rar command's help page: vn Use the old style volume naming scheme Thus, if you want to create volumes with the old naming scheme you need to use the following: rar a -vn -v<volume size> archive [files ...] The -vn switch is not working on version 5.+, but you can force using version 4 with the -...
Create Rarfiles with old style?
1,448,949,666,000
The unrar is package is installed in my Arch Linux. I want to create a rar file, so I tried to install rar package from Arch AUR, but the repo is currently unavailable. So, I wonder if it is possible to create a rar file with the help of 'unrar' package?
You can't create rar archive with unrar. unrar can be only used to unpack rar files. You need to have full rar binary to create a rar file on linux.
Create a rar file with the help of unrar package
1,448,949,666,000
I'm trying to install unrar package for my cpanel. as some people suggested that I need this package unrar-4.20-2.mga3.nonfree.x86_64.rpm . So when I run rpm -ivh unrar-4.20-2.mga3.nonfree.x86_64.rpm I get this error: [root /]# rpm -ivh unrar-4.20-2.mga3.nonfree.x86_64.rpm warning: unrar-4.20-2.mga3.nonfree.x86_6...
Install rpmforge from here: http://wiki.centos.org/AdditionalResources/Repositories/RPMForge#head-5aabf02717d5b6b12d47edbc5811404998926a1b . Then 'yum update && yum install unrar'
unrar for centos 5.7 needs unrar-4.20-2.mga3.nonfree.x86_64.rpm which causes an error
1,660,407,829,000
I am trying to install rar in Kali Linux to create a rar archive file. I have followed articles that says to use this command: sudo apt install rar. However, it returns with: Reading package lists... Done Building dependency tree... Done Reading state information... Done Package rar is not available, but is referred t...
You can download the last version of rar from official site and install it. The link to download.
How to install rar in Kali Linux
1,371,844,630,000
Say we have a named pipe called fifo, and we're reading and writing to it from two different shells. Consider these two examples: shell 1$ echo foo > fifo <hangs> shell 2$ cat fifo foo shell 1$ echo bar > fifo <hangs> shell 1$ cat > fifo <typing> foo <hangs> shell 2$ cat fifo foo ^C shell 1$ <typing> bar <exits> I ...
Your example is using a fifo not a pipe, so is subject to fifo(7). pipe(7) also tells: A FIFO (short for First In First Out) has a name within the filesystem (created using mkfifo(3)), and is opened using open(2). Any process may open a FIFO, assuming the file permissions allow it. The read...
Under what conditions exactly does SIGPIPE happen?
1,371,844,630,000
Solutions that I have come across for replacing the contents of an input file with converted output involve using a temp file or the sponge utility. Stephane Chazelas's answer here indicates another way involving opening the file in read-write mode as below. tr ' ' '\t' < file 1<> file How does this actually work wit...
This only works because tr does not change the file size. 1<>file opens file as standard output in overwrite mode. (<> is called read/write mode, but since few programs read stdout, it's more useful to focus on what it actually does.) Normally, when you redirect output (>file), the file is opened in "write" mode, whic...
Overwriting an input file
1,371,844,630,000
I have an old ext4 disk partition that I have to investigate without disturbing it. So I copied the complete partition to an image file and mounted that image file while continuing my investigation. Now while I do not write to the mounted filesystem, I do have to mount it with read/write access, because one of the pro...
I agree with @UlrichSchwarz mount it read-only, then use overlayFS or unionFS to create a writeable file-system. You can make the writable layer (the bit where the modifications go, disposable, or persistent. Ether way the changes are not stored on the master file-system.
Can I mount ext4 without writing the last mountpoint to the filesystem?
1,371,844,630,000
I want a process (and all its potential children) to be able to read the filesystem according to my user profile but I want to restrict that process's write permission to only a set of pre-selected folders (potentially only one). chroot seems to act too broadly. Restricting the process to a particular part of the file...
firejail does the job: mkdir -p ~/test && firejail --read-only=/tmp --read-only=~/ --read-write=~/test/ touch ~/test/OK ~/KO /tmp/KO
Restrict linux process write permission to one folder
1,371,844,630,000
Here are my commands mt -f /dev/st0 rewind dd if=/dev/st0 of=- As I understand it the first command rewinds my tape in /dev/st0, and the second command writes contents of /dev/st0 to -. My questions are Where is -? What is this command doing when it writes the data from the tape to -? The result of the command is: ...
It's been a long time since I've used tape. However, here's what I believe is happening mt -f /dev/st0 rewind This rewinds the tape in /dev/st0 ready for writing. Once the device is closed the tape is then automatically rewound because you didn't use the non-rewind device probably called something like /dev/nst0. Obv...
Testing LTO drive with mt and dd
1,371,844,630,000
I was not able to chmod a file in my /dev/sda3 on my Ubuntu12.04 system. This is what I get when I try to see its information: $ mount | grep 'media' /dev/sda2 on /media/sda2 type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096) /dev/sda6 on /media/sda6 type ext4 (rw) /dev/sda3 on /media/sda3 type fu...
Don't use -o remount. That's only useful for remounting, that is, unmounting and mounting again in one operation which isn't supported in your case. Therefore, you need to unmount just like you did and then run: sudo mount -o rw /media/sda3
Remounting is not supported at present. You have to umount volume and then mount it once again
1,371,844,630,000
I want to delete a few files from my iso image on hard disk. So, I did: ravbholua@ravbholua-Aspire-5315:/media/ravbholua/f34890dd-20d2-4d78-92c9-1de7c0957f00$ sudo mount -o loop check_bholua99.iso /media/iso2 mount: block device /media/ravbholua/f34890dd-20d2-4d78-92c9-1de7c0957f00/check_bholua99.iso is write-protect...
ISO9660 is a read-only filesystem. It can't be mounted in rw mode because there is no support for that in the filesystem itself. If you want to make a new ISO with a different set of files, you need to make an entirely new ISO with mkisofs or similar utilities.
mounting iso image: message "block device is write protected, mounting read-only"! [duplicate]
1,371,844,630,000
How can I preferable from the terminal measure the read and write speeds of /dev/sdx?
The easiest way is to use this command: hdparm Typical usage and output: # hdparm -tT /dev/sda1 /dev/sda1: Timing cached reads: 2408 MB in 2.00 seconds = 1201.84 MB/sec Timing buffered disk reads: 260 MB in 3.03 seconds = 85.95 MB/sec Please be careful with this command and don't play with switches too much u...
How can the read/write speed of a partition or drive be measured? [duplicate]
1,371,844,630,000
I run Ubuntu 16 Desktop as host and on VirtualBox running Ubuntu 16 Server as guest which is using raw partition on another disk different from the one used by the host. I am searching for a solution which will allow me to have safe read-write access to the guest's FS (or at least to some directory on the guest partit...
Don't do this... If two operating systems try to access the same raw block device at the same time then you should expect to see data corruption. Even if one of them is read-only, that read-only instance will cache data (eg directory contents, file contents) and won't know that the underlying data blocks have changed...
How to get read-write access (safe) to ext4 filesystem used by second OS running from virtualbox
1,371,844,630,000
When using SWAP on an SSD, does the filesystem offer any write-cycle protection? i.e. randomizing or otherwise managing writes to avoid "flash wear-out" since modern SSDs are generally rated in the low thousand write-cycles before wear-out. I had previously assumed that all filesystes (SWAP included) would, though whe...
Swap is not a filesystem. I don't think OSes take any particular care of how they arrange the swap space. Most filesystems either don't care or are optimized for rotating disk drives in that they try to privilege sequential reads and writes (i.e. avoid fragmenting files too much), which is not relevant on SSD. Modern ...
SWAP write protection on SSD
1,371,844,630,000
I have a usb drive. It mounts as "ro." When I mount -o "remount,rw" I see this in dmesg. hfsplus: filesystem was not cleanly unmounted, running fsck.hfsplus is recommended. leaving read-only. The verbose flag (-v),mount -v` doesn't tell me anything more. It actually says the mount worked, mount: /dev/sdb1 mounted on ...
After you get ** The volume myDevice appears to be OK. You can unplug the device, and plug it back in and automount will take care of it with -o rw. I'm unaware of what it takes to get -o rw to work, after mount thinks the device is dirty, without pulling it and plugging it back in.
I can't -o "remount,rw" a usb drive
1,371,844,630,000
Say I have a program being run on multiple computers all on the same network (and all on the same account). Every once in a while the program needs to read/write a file save.dat. The actual file itself isn't important, more so is it's contents (just 3 seperate numbers that need to be kept track of). As soon as the fi...
Set up one of the machines as an NFS server and let it serve an NFS share to the others. Let the file live on that shared network filesystem. This is a fairly common solution for e.g. sharing home directories between many client machines from a file server. You will be able to find more information about how to do th...
Having multiple computers on network access file?
1,371,844,630,000
I use Ubuntu 17.04, though this problem was persistent in many previous versions. Long ago (a year or two, I think) I started to spot it. Immediately (no more than a couple of minutes) after the system start up the system load indicator is starting to report writing to the disk, as it is shown on the next screen shot ...
Your system is under heavy load (99.24%) from: fstrim (8) - discard unused blocks on a mounted filesystem which is an obvious source of writes to the disk. On the other side, the fact that a rate goes very high doesn't mean that there is a lot of writting. If you write 100 bytes in 1 nanosecond, you will ge...
Why is the write rate to the disk being up to several GB/s, while no process reports any writing?
1,371,844,630,000
New Linux (Debian) installation. Two hard disks, A and B. On A I have the whole system, on B I just have the lost+found directory. Only root has read/write access to B. How can I create a directory in B from the command line (with root privileges)? With: mkdir /newDir The directory is created in A. The directory /mn...
I understand that your hard disk B is mounted on /media/pietrom/2ffc680f-08e5-4a14-bbb7-f8c01fdff532, so in order to create a new folder on it, do: mkdir /media/pietrom/2ffc680f-08e5-4a14-bbb7-f8c01fdff532/newDir
How to write on a second hard disk?
1,627,133,222,000
How do I tell zypper to reinstall all currently installed packages?
You can reinstall all currently installed packages by this command: zypper in -f $(rpm -q -a --qf '%{NAME} ') Maybe this information will be useful.
How to reinstall all installed packages with zypper
1,627,133,222,000
I'll change my system from 32 bits to 64 bits, and will be the same I had before, Debian Squeeze, but I do not want to lose the programs I installed before, because I do not remember the name of them all. So I wanted a command to do this for me, save the name of all the programs I installed on a file, but not the sta...
Have you tried to use dpkg --get-selections >packages? If you want to exclude some packages, you can edit the output file packages. When you're done, transfer it to the target system and say: dpkg --set-selections <packages And packages will be marked for installation. You'll most likely also need to say aptitude upd...
How to create a list of installed packages for easy/automatic reinstall after disk is formatted
1,627,133,222,000
I'm intending to replace a NAS's Custom Linux with Arch Linux (details at the bottom), of course wishing to preserve all user data and (due to the SSH-only headless access) attempting to be fool-proof since a mistake may require firmware reinstallation (or even brick the device). So instead of running the installation...
with the required skill and especially knowledge about the installed linux it is not worth while anymore to replace it. and whatever you do, you probably never want to replace the already installed kernel. however, you can have your arch linux relatively easy and fool proof! the concept: you install arch linux into so...
How to safely replace one Linux distribution with another one via SSH?
1,627,133,222,000
I'm having some issues with my system and I would like to reinstall packages to see if that resolves it, but I'm not sure how I'd go about doing this. How do I reinstall all installed packages in Alpine Linux?
You can do this by using a combination of apk info and apk fix: $ apk info | xargs sudo apk fix Be careful however as this may break your system if you do not have enough storage available to reinstall every package.
How do I reinstall all installed packages in Alpine Linux?
1,627,133,222,000
I have a 2 year old laptop with Linux Mint 13 on it. Recently I've been having some problems with it (computer freezing, my settings suddenly disappearing and more) so I've been thinking about installing a new distro. I was recommended Xubuntu and I want to try it. Is is possible to install it instead of my Mint, but ...
First of all, it is always good to have /home on a different partition, precisely to enable multiple installations to use the same home (you can have them installed simultaneously on different partitions, all of them using the same home). But it's too late for it now. You can always copy everything on a different hard...
Installing different distro without losing /home
1,627,133,222,000
I have accidentally deleted /bin/sh, and I am trying to to re-install it. If I type sh in the terminal, It says The program 'sh' can be found in the following packages: * bash * dash If I try to apt-get install bash, I get bash is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 109 not u...
Try sudo ln -s dash /bin/sh. The "dash" package should already have set this symlink in its post-installation routines.
How to reinstall /bin/sh
1,627,133,222,000
Since Windows still does not offer means to skip rewriting the MBR, what can I do before reinstalling Windows to get Grub2 back into the MBR as easy as possible? (I'll also appreciate it if the answer then describes how to restore Grub)
Some people have been able to get NTLDR to chain to grub: http://stringofthoughts.wordpress.com/2009/04/27/booting-linux-from-ntloader-windows-bootloader/ Although in practice it's easier to use a live CD. I usually do something like: mount /dev/sda2 /mnt/somewhere # mount the linux partition chroot /mnt/somewhere bas...
What preparations should I make before reinstalling windows?
1,627,133,222,000
I have done something stupid and messed up my Debian Squeeze installation. Now, the problem is I have enough data and sowftware installations which I don't want to repeat; is it possible to reinstall the OS and still somehow save and maintain data on my box? I have still not tinkered with the installation, I am just f...
If you don't mind acting like a cowboy (and I have never tried this): Back up your /etc and /home directories (and next time, put your homedir in a separate partition). Do the same with anything else you changed outside those two directories. Do a fresh install. Restore your backups. The system-wide config dir, /etc,...
Is it possible to reinstall Debian afresh and retain all the cutomisation and data from existing installation?
1,627,133,222,000
I want to be able to format my OS SDD and format and reinstall without losing any user data, is this possible? I'm currently doing this on Windows 7 and 8 with the help of portable apps and some hacks. Drivers are downloaded automatically on Windows so I don't know how to translate this on Linux. For example, my Firef...
It's actually quite straight forward. You need to know how you use your system and what will grow over time. In general, the simplest is the following: /home = your user directory as you already mentioned /var = log files go here; mail spool; printer, etc -> this is good to place on a separate partition /tmp = tempor...
Separating OS on a SSD from user settings and apps on HDD
1,627,133,222,000
This is primarily a sanity check before installing the latest openSUSE on my parents’ computer. To make sure that they can continue where they left off, is it a simple case of using the -d and -M flags to reuse the old home dir? useradd -u previous-uid -d old-home -M user-name There aren't any particular gotchas th...
If they have one account that should be enough, but if each of your parents have their own login, you might want to check that the groups are similar set up, especially if they are sharing files and using group permissions to read and write in some shared directory. You can add a group with groupadd and use usermod to...
When installing an updated Linux version, how do I reuse old home directory? [closed]
1,627,133,222,000
I've had my workstation for a couple of years now and its slowly become a complex beast, taking on many roles for my dev and test work. I have done some research and was thinking of setting up some chroot environments to help keep things contained (web/app server, 32/64bit development env, etc...). I'd like to configu...
If you install the OS inside a chroot in a directory deep in an existing filesystem, you won't be able to boot it without hassle. It's possible if you work on it, but it's not a good way to get a clean installation. I recommend first making a clean installation in a system partition of its own. Shrink one of your exis...
Backing up chroots for host reinstall
1,627,133,222,000
I'm used to keep all my files in my /home directory after whiping out my root / device and reinstalling distributions. This is pretty handy as all private files and personal settings are kept after reinstallation of a linux distribution. Now I noticed that there are like ~ 300k files are currently in my /home device. ...
Your home directory is meant to be used for your own files, which means that you definitely can use it with different distributions. Problem can arise if you use different version of the same software, older one could break because of incompatible changes in config files, but that should not be the case if versions ar...
Should I clean up the home directory prior installing a new distribution?
1,627,133,222,000
I have a Debian based server but I don't have physical access to it and it doesn't have a DVD-drive or similar. I only have root access. Is it possible to format and reinstall Debian just by using the root account? I was thinking of solutions like installing to a separate partition and after install format the current...
I would say the answer is maybe but I wouldn't do it and I would STRONGLY recommend you DO NOT TO ATTEMPT IT. The idea is fairly simple but requires perfect execution which Murphy's Law will mess up. If your hardware has PXE boot and another Linux machine on the network where your server resides you can set up a Netwo...
Reinstall Debian
1,627,133,222,000
I uninstall samba this way: My os is debian11. sudo rm -f /etc/samba/smb.conf sudo apt purge samba sudo apt install samba Now check the default samba's configuration file. sudo ls /etc/samba/smb.conf ls: cannot access '/etc/samba/smb.conf': No such file or directory
The package which “owns” smb.conf is samba-common; you need to purge that, and re-install samba (since it will be removed when removing samba-common): sudo apt purge samba-common sudo apt install samba
Why can't get the default configuration file after reinstalling samba?
1,627,133,222,000
I was attempting to update my CentOS 7 system tonight and kept getting an error from python-urllib3. I tracked down the error to a directory that should not have been present. So, I went to remove the offending directory and inadvertently deleted the parent instead. In this case, the parent was /usr/lib/python2.7/site...
Since rpm does not require python (thank god), we use rpm to find out the full name of every package that either has python in the name, or requires the base python package. # rpm -qa |grep -i python |sort # rpm -q --whatrequires python |sort Once you have the full list of packages, you need to find out where yum dow...
How to recover from a major mistake that breaks yum
1,627,133,222,000
I have installed postfix using the ports tree without making modifications to anything. In my main.cf file i can't specify any 'Mysql:/' arguments because postfix does not have mysql support. Now i want to reinstall postfix with mysql support. i have tried the following: make -f Makefile.init makefiles \ 'CCARGS=-DHAS...
Note: If you're looking for the recently released Postfix 3.0 series, you should substitute mail/postfix-current for mail/postfix below. You may manually set configuration options when using the ports tree, but you don't have to. If you installed postfix via pkg, run pkg delete postfix with root privileges. If you ins...
FreeBSD Reinstall postfix with mysql support
1,627,133,222,000
Problem Previously, I had a system dual-booting Linux Mint and Windows 10. Having become increasingly frustrated by some configuration issues that seemed to stem from my initial choice of /home partition, I decided to re-install Mint and fix the problem at the root, so to speak. My intent in doing this was to replace ...
Well. Kept doing research, found the solution was sudo update-grub. That found the Windows. Everything seems to be working so far, leaving this up in case someone else hits the problem.
Accidentally replaced my boot loader, new one isn't picking up old system
1,627,133,222,000
A few days ago, i changed a files in the windows directory using debian. After that it would cause kernel panic in my windows os. Is there any way to install new windows on the same corrupt disk partition ?? Please help me..
insert your windows disk and then do manual partitioning and choose to install ONLY that partition, but I think you'll have with the grub, and then you will need to repair it with a live, in any case, before you do anything you do a backup of data
Remove corrupt windows from laptop and install new windows again using linux [closed]
1,627,133,222,000
I'm new to Arch Linux and I want to ask how often will I need to reinstall whole Arch Linux. So if you're also a Windows user you'll (or you might) now you'll need to remove and reinstall a new windows to reduce the disk usage or for some security reason (like viruses etc.) So I'm wondering how often will you need t...
No stable operating system requires reinstallation as a matter of general use. I can think of a few reasons one might want to do so, and why they don't apply to a typical Linux distribution: Installed application programs acting erratically. If you keep track of applications through the package manager (pacman in the...
(How often) Will you need to reinstall Arch Linux [closed]
1,627,133,222,000
A few months ago, I bought a Chromebook CR-48 Mario on eBay and I "modded" it and flashed a new BIOS and installed a different Linux version. Now I want to re-install Chrome OS. Where can I download the .img or .iso for Chrome OS?
You can get most releases at http://getchrome.eu/download.php For official documentation from Google on recovering your device go to: https://support.google.com/chromebook/answer/1080595?hl=en
Where Can I Download Chrome OS?
1,627,133,222,000
I've recently reinstalled my Debian server but forgot to backup mysql databases which were in folder /var/lib/mysql. I need to recover them and tried to use PhotoRec but I can't find the mysql databases there. I have shutdown my server for the moment so it doesn't deteriorate the recovering process. Is there any bette...
You were correct to power off your system. Your best bet is to boot from a rescue disk, such as SystemRescueCD, and try to recover the files using file recovery utilities. SystemRescueCD comes installed with PhotoRec and TestDisk. The extundelete utility is also worth a try. While it does not come installed on System...
recover mysql databases after reinstall debian
1,627,133,222,000
I have wheezy installed from a pen drive. Updated things and thought I had got maven and eclipse. But maven projects would not compile. I uninstalled all the maven programs I could find in Add/remove software. That was 2 days back. Now can't remember what I removed and anyway fear something was missing. What -all- do...
Do not manually download packages and try to install them with dpkg. Instead, use apt-get or aptitude that will figure out the necessary dependencies and download and install the correct packages for you, for example: aptitude install maven I don't know anything about Maven, so I don't know if this is the correct pac...
wheezy maven install
1,627,133,222,000
I recently wiped an old ubuntu server of mine and installed debian, but i forgot to backup a very important file. I know there is a chance that the computer has already wrote over the file, but what can I do to look for this file?
The first thing is to not use the system at all. Everything you do increases the chances that you'll overwrite a part of the file. Depending on how important it is, I would pull the plug and image the hard drive first (e.g., with dd). If nothing else, use a live CD to look for the file. If it's very important, you cou...
Recover file from previous installation? [duplicate]
1,588,501,819,000
I wish to run python script that I have locally on disk on remote machine. I used to run bash scripts like this: cat script.sh | ssh user@machine but I do not know how to do same for Python script.
As others have said, pipe it into ssh. But what you will want to do is give the proper arguments. You will want to add -u to get the output back from ssh properly. And want to add - to handle the output and later arguments. ssh user@host python -u - < script.py If you want to give command line arguments, add them ...
Run local python script on remote machine
1,588,501,819,000
I have a service which is sporadically publishing content in a certain server-side directory via rsync. When this happens I would like to trigger the execution of a server-side procedure. Thanks to the inotifywait command it is fairly easy to monitor a file or directory for changes. I would like however to be notified...
Drawing on your own answer, if you want to use the shell read you could take advantage of the -t timeout option, which sets the return code to >128 if there is a timeout. Eg your burst script can become, loosely: interval=$1; shift while : do if read -t $interval then echo "$REPLY" # not timeout ...
Monitor a burst of events with inotifywait
1,588,501,819,000
I'm an amateur radio operator, and I use a software package called WSJT-X to connect my computer to my radio to operate it using what we call "digital modes". This works by sending audio signals from the speaker output of a USB sound card to my radio, and reading audio signals from the microphone input on that same ca...
Yes, you can (this is an example of something you can do): How can I use PulseAudio to share a single LINE-IN/MIC jack on the entire LAN? On the sender side simply load the RTP sender module: load-module module-rtp-send On the reciever sides, create an RTP source: load-module module-null-sink sink_name=rtp load-modul...
PulseAudio as remote source *and* sink?
1,588,501,819,000
My office has one default gateway and behind that is a local network with locally assigned IP addresses to all computers including mine. I hold admin in my Ubuntu installed office PC and is it essential that I access the computer during weekends through SSH. At office, I do not have a public IP but I always get the sa...
It's easy: [execute from office machine] Setup connection Office -> Home (as Home has public IP). This will setup reverse tunnel from your office machine to home. ssh -CNR 19999:localhost:22 homeuser@home [execute from home machine] Connect to your office from home. This will use tunnel from the step 1. ssh -p 19999 ...
SSH PC at office in local network from home
1,588,501,819,000
Is it possible to transport whole device as in /dev entry over TCP? I'm talking about transporting e.g. joystick over TCP or mouse/rs232 port/framebuffer dev, soundcard dev, disks, etc. I'm mostly interested in input devices - keyboards, joysticks, tablets, mice, etc. in a more generic fashion than specialized softwar...
As long as those are USB devices, what you're looking for has been possible for several years with USB/IP. It has since been introduced in Linux 3.17. See the usbip package on Debian-like systems. You may even have Windows clients (i.e. accessing USB devices plugged on a Linux server). As for the block devices, Linux ...
Is it possible to transport any device over TCP?
1,588,501,819,000
I need to enable remote execution of a shell script on a server, but deny all other access. The script is a toggle that accepts a single parameter (on/off/status). This comes close to answering my question, but while it works to run scripts remotely, I still can't pass arguments. Is there a way to do this without maki...
If you use a custom shell as suggested by Arcege and 2bc, then that shell will receive the command which the user intends to execute as an argument because the shell is invoked like this: shellname -c the_original_command So ignore the -c (that your $1) and find the command in $2. For example: #!/bin/sh case "$2" in...
Restricted ssh remote execution with arguments
1,588,501,819,000
I started an fsck locally from tty1 on my Linux server and it seems to take forever. Would I have thought about this before or known I would have run a screen fsck. Is there any way to monitor tty1 via SSH or see the output from the fsck process running? I don't need to interact, just see how it's going.
If tty1 is the first virtual console on a Linux system, you can view its contents via /dev/vcs1: cat /dev/vcs1 (as root). (Thanks to Sato Katsura for pointing out that this is Linux-specific!)
Monitor/spy on tty1 or see the output from tty1 via SSH? [duplicate]
1,588,501,819,000
From time to time I want to use vim as scratch pad for commands that I would like to send to a command line shell like psql (Postgres), ghci (Haskell programming language), octave ('calculator'), gnuplot (plot) etc. The advantages would be that you could put comments next to command lines, directly document your sessi...
Try vim-slime, an environment inspired by Emacs's SLIME mode. It sends the contents of Vim to a screen or tmux session. In the future you can probably also use Xiki, but for now its Vim support is incomplete.
How to configure vim to interact with interactive command line shells?
1,588,501,819,000
I want to replace TeamViewer with a FOSS solution. I need to support some remote computers. I have a working SSH tunnel set up between two computers using a middleman server like this: Kubuntu_laptop--->nat_fw--->Debian_Server<--nat_fw<--Kubuntu_desktop This SSH tunnel is working now. Next I want to connect to the de...
It sounds like you currently have a default ssh connection between the laptop and server: Kubuntu_laptop--->nat_fw--->Debian_Server Modify the parameters to the ssh connection so you have -fNL [localIP:]localPort:remoteIP:remotePort For example: -fNL 5900:localhost:1234 If your laptop used VNC on the default port of 5...
Remote support: routing RDP over ssh tunnel?
1,588,501,819,000
I needed to replace a Gyration remote control (which was for controlling MythTV) and it is no longer made. So I got a Keyspan TSBX-2404. It works in the sense that it communicates with the box (Fedora 15) but unlike the Gyration it sends multiple keypresses whenever I hit a button. For example, in xev if I press a ...
What you want to do is turn on BounceKeys. I've never needed that, and I'm not quite sure how you turn it on in Fedora 15, but maybe that will give you something to search for.
Preventing multiple keypresses from RF remote
1,588,501,819,000
I have an infrared remote control which sends RC-5 signals and a computer with an IR receiver. The computer runs Debian 8 and I'm trying to set up LIRC so that I can control the music player daemon (MPD) with the remote. I have installed the lirc package and added a configuration file for RC-5 signals in /etc/lirc/lir...
Updated 2021-01-10 for LIRC 0.10.1 Here are the steps I need perform to make it work. Install LIRC: # apt install lirc In /etc/lirc/lirc_options.conf, set driver and device to the following values: driver = default device = /dev/lirc0 Download a configuration file for the remote control and copy it to /etc/lir...
Setting up LIRC in Debian 8
1,588,501,819,000
If we have a physical server running OpenBSD, what are the available remote console solutions for it? Are there any unique methods because it's an OpenBSD? Console of course means if there is no network connection for the machine via ex.: SSH.
I can think of the following alternatives: making the serial port available using a network attached serial console switch connect keyboard, video and mouse to a network attached KVM switch connect the serial port to another host and make the serial port network connected with socat
Available console solution for a physical machine running OpenBSD?
1,588,501,819,000
In iKVM (Supermicro) I have switched to text console mode using <Ctrl>+<Alt>+<F1>. How I can switch again to graphic mode? (the same keyshortcut pressing again doesn't do anything).
Have you tired <Ctrl>+<Alt>+<F6>, by default F6 is for graphic mode and first five are for text console in linux from F1 to F5. Switching back to X Window: Alt + F7.
iKVM: return to graphic mode
1,588,501,819,000
I have found an old infrared remote controller with the receptor connected as USB. I connect it into my Linux box (Mint LMDE kernel 3.2.0-4-amd64). It's recognized with lsusb as "Zydacron HID Remote Control". It works ... almost ... I can change the volume, start/stop the media player, choose the track in the playlist...
So I have to come back on this because I found a "better" solution (IMHO) without LIRC ! As I said, the first time I connected the USB receiver, almost all buttons on the remote was working, without any other software nor any configuration. On different advice (not only here), I installed LIRC and plugins I found for...
Configure remote control Zydacron
1,588,501,819,000
I want to display the desktop of my raspberry pi on my laptop. On the rPI runs Raspbian with LXDE. I am on Ubuntu 12.04/awesome. Is it possible to display the complete rPi-desktop on my laptops Xserver? I dont want to see just windows with the ssh -X ... way. I want to have the complete desktop. As I read VNC sends ...
Well first create a new nested Xserver: user@host $ Xephyr :1 -screen 800x600 & A window called "Xephyr on :1" should spawn. Ssh into the remote host an forward the display to the created display: user@host $ DISPLAY=:1 ssh -Y username@remotehost Now start a session on the remotehost, in my case LXDE: user@remotehos...
X windowing system remote desktop procedure? (No VNC, no XN)
1,588,501,819,000
In Windows you could enter file properties and see which users have an access to a particular files. [Including remote users / groups that are part of your domain] In unix when you enter properties of a file - You only get the local users[Or groups] / Owner / Others. Is there any way of knowing which remote users have...
Depends entirely on what mechanism you're using. NFS with sys authentication purely relies on the user/group/other permissions and UID/GID matching. So you have to figure out 'by hand' whether any given user is a member of the right group. Remote users ... are validated by the server hosting the storage, so you can ...
Is there any way of knowing who [including remote users] can access a paticular file / folder?
1,588,501,819,000
In our school lab, we have 20 computers and we want to set up Linux on them. Is it possible to control them (I mean tasks like updating, upgrading and so on) from a central computer? N.B: Zorin Grid can do the task I want, it is currently in the development phase. Is anything like it available? Edit: Thanks to all f...
Yes that's possible; it's very standard. Actually, the usual Linux way of working makes it easy. So, first of all, on Linux, all administrative things are usually done using the command line. So, you enter some command to update your computer. Thanks to ssh, you can log in from anywhere to your computer (as long as yo...
Controlling other Linux desktops from a central one