Debian Configuration :: Man-db In Chroot Ssh Environment

Aug 26, 2015

I've been bashing around this for a couple of days, and could not find answer by using google. My debian 8.1.0 jessie runs perfectly fine. To perform SSH chroot jail, I issued an apt-get install makejail.

The ssh chroot environment runs great. I used makejail configuration scripts. The man pages are perfectly available from TTY login. Yet from a SSH session (chroot jailed) the man pages could not be found.

My MANPATH environment variable points at /usr/share/man

Running "mandb -c" from a SSH session as root tells:

0 man subdirectories contained newer manual pages.
0 manual pages were added.
0 stray cats were added.
0 old database entries were purged.

simply copying the contents of the /usr/share/man to /jail/usr/share/man
and running the "mandb -c" command gives lots of "dangling symlink" errors.

Perhaps the /jail directory need some dependent files, or change file permissions somewhere but I just couldn' t figure that out.

View 0 Replies


ADVERTISEMENT

Debian Configuration :: Make Pulseaudio Work Inside Chroot

Apr 18, 2016

I have amd64 Debian Jessie and i386 Debian Jessie installed on my laptop. I wanted to start x86 app that is installed on my x86 OS from my amd64 OS using chroot.

My mounts inside chroot:
Code: Select all/dev/sda7 on / type ext4 (rw,relatime,data=ordered)
/dev/sda5 on /tmp type ext4 (rw,relatime,errors=remount-ro,data=ordered)
/dev/sda5 on /etc/resolv.conf type ext4 (rw,relatime,errors=remount-ro,data=ordered)
tmpfs on /dev/shm type tmpfs (rw,relatime)
proc on /proc type proc (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,mode=600,ptmxmode=000)
none on /sys/fs/cgroup type tmpfs (rw,relatime,size=4k,mode=755)
systemd on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
/dev/sda5 on /var/lib/dbus/machine-id type ext4 (rw,relatime,errors=remount-ro,data=ordered)

sda5 is host OS and sda7 is guest OS

when I start any x86 app I can see "failed to create secure directory (/run/user/1000/pulse) permission denied" how to make pulseaudio to work inside chroot?

also what this command exackly does?

"pactl load-module module-simple-protocol-tcp rate=48000 format=s16le channels=2 source=auto_null.monitor record=true port=8000 listen=127.0.0.1"

View 2 Replies View Related

Debian Configuration :: NVIDIA Driver 32bit Chroot On 64bit Host?

Mar 23, 2011

I have 64bit debian 6 squeeze installed on my 64bit pc. I have an NVIDIA gpu which I have installed the drivers for and they work just fine. I also have a 32 bit chroot located at /32 which was created using debootstrap. The NVIDIA 64bit driver gives the option to install compatability driver libraries into the 32bit chroot. Whenever I run any application that uses opengl rendering within the chroot, they segfault. When I uninstalled and reinstalled the NVIDIA driver without installing the libraries to the chroot, and instead replaced them with mesa gl libraries, the programs complain about framebuffer missing. They do not segfault, and some programs that can use sdl instead will work fine. I have xhost + set to allow any programs in the chroot to use the host's xorg. I have the host's proc mounted to the chroot proc directory, and i also have dev mount --bind 'ed to the chroot.

View 11 Replies View Related

OpenSUSE Install :: How To Set Up A Chroot Environment

Aug 25, 2011

I`m running openSUSE Tumbleweed so the first question is: can i run ONLY another openSUSE OS inside the environment ? or can i run any distro i want ?

My second question is how do it set up the environment to act just like my normal OS, with both root and user rights on it? and of course can i run X ?

And finally third question: after googling a bit i did not found a tutorial for openSUSE but i have seen that is says that i have mount and/or bind certain things, how do i make the same thing under openSUSE for the respective chroot environment?

View 9 Replies View Related

Ubuntu :: How To Reboot A Chroot Environment

Nov 30, 2010

i created a chroot environment for maverick. while installing packages and ubuntu-desktop it says that i need to restart. when i pass the command " sudo shutdown -r 0" my whole system gets restarted. how can i restart that particular environment.

View 3 Replies View Related

Ubuntu :: No Names In Chroot Environment

Dec 4, 2010

I created a chroot environment for lucid. when i log in by executing this command "sudo chroot /var/chroot/lucid" it logged me in as a root user. i created a new account there, when i log in by that account i cant see anything written before $ sign. even if i change directory or anything else i cant see anything.

View 1 Replies View Related

General :: Ping Not Working In Chroot Environment

May 16, 2011

How can I use the ping command in a chroot environment?
$ ping 8.8.8.8
ping: icmp open socket: Operation not permitted
Currently I am using CentOs, but ideally there must be a solution that works in all chrooted environments.

View 2 Replies View Related

General :: Crete A 64bit Chroot Environment?

Jan 25, 2011

How to crete a 64bit chroot environment? Im not able to run Virtualbox.

View 2 Replies View Related

General :: Creating A Chroot Environment - Specifically With A Different Kernel ?

May 9, 2011

I have successfully installed a Ubuntu chroot (Maverick) on a running Linux appliance (an old Thecus N5200PRO box) which has been running various services for me quite happily.

When I attempted to add a webcam (for snapshotting) to this mix, I've come up against a problem. Since the chroot by default uses the kernel of the Thecus appliance, there appears to (understandably) be no support for the Logitech UVC webcam in the appliances' kernel; consequently inside or outside the chroot I can't access the UVC webcam.

I think I can get around this in a simple way if I can run a standard Ubuntu Maverick 32-bit kernel in the chroot.

Does anyone know how to chroot with alternative kernels, or quite simply, how to get a UVC webcam accessible on a Thecus N5200PRO?

Other details:

lsmod output
Output of uname -a:

Linux cube 2.6.23N5200 #1 PREEMPT Wed Jul 29 14:13:22 CST 2009 i686 GNU/Linux

lsusb -t output

View 2 Replies View Related

Programming :: Shell Script - Entering The Chroot Environment ?

Jul 19, 2010

My script is like this

Code:

How can i make the script do all those command using the script?

View 1 Replies View Related

CentOS 5 Networking :: Bind9 In Chroot Environment Failed To Start?

Mar 19, 2011

system: centos 5.5 Kernel 2.6.18-194.el5 freshly installed. bind is configured in chroot environment out of the box. placed named.conf in /var/named/chroot/etc and my zone files in /var/named/chroot/var/named.

[Code]...

View 3 Replies View Related

Programming :: Obtaining Access To File In Chroot Environment From Usual Root?

Aug 1, 2011

ccess to an iso file in chroot environment from my usual root (/) env..

Within the chroot environment I have an iso file placed... In my program I need to access this iso file and perform mount and other operations.. But I cant do this in the chroot environment as I have only basic commands here (ls,cp etc.. and no mount)

So how can I access this iso file from my program ? Is there something like a file-descriptor which I can associate with the file exit from the chroot env and access the file via this fd ?

View 6 Replies View Related

Debian Configuration :: Environment Variables For All Users

Nov 27, 2015

I'm newbie on Debian, and I just installed Debian 8.2. (I used to run openSuse, and I see Debian is quite different.)

Where should I set environment variables (like PATH or JAVA_HOME) in order to affect all users?

I read some documentation about that, but It is not clear for me, the difference among "/etc/environment", "/etc/bash.bashrc" and "/etc/profile".

(In openSuse, I used to create a file "/etc/bash.bashrc.local" and set the environment variables there, in order these settings are not lost with updates.)

View 1 Replies View Related

Debian Configuration :: Chroot + Ldap - Cannot Change Into The Dchroot - Get Error "E: Group '1,031' Not Found"

Jan 19, 2010

I have a set of two amd64 machines with Debian Lenny. Machine 2 reads all the users' information from the Machine 1 through LDAP. Also, in Machine 2 I set up a dchroot environment for 32 bits compatibility ( following [URL]

In addition to the above instructions, on this Machine 2, I set up /etc/libnss*, /etc/ldap/*, and /etc/nsswitch.conf both for the amd64 and for the i386 environments. I have no problems if I'm in the native amd64 mode. However, once I enter the i386 dchroot, some strange things happen:

1) For users from uid=1000 to uid=1031, I get an error if running 'whoami' (Cannot find name for user ID XXXX) and if I run 'id' , I get all the correct group numbers but no translation to group names in parenthesis as it should be. 'ls -l' also only lists group numbers but no names.

2) for user 1032 I cannot even change into the dchroot, I get the error "E: Group '1,031' not found"

View 2 Replies View Related

Debian Configuration :: Environment To Run Old Linux Games-template

Mar 20, 2016

I have some old linux based games and applications that require old libraries to run.But in the mists of time, I've lost the scripts on how to set up a sandbox environment to run them. Any template for that type of fiddle? I should be able to resource libraries contemporary to the games from my collection of old distros, but my web fu on this matter(jargon) is cracked. It would have to be easier that continually trying to fiddle the MS OS version to run under Wine/PlayOnLinux. I've got Myst II, Civilisation CTP and Railway Tycoon II, although I think the last app I ran was Word Perfect 8.

View 3 Replies View Related

Debian Configuration :: Setup PATH Environment Variables?

Jan 8, 2011

I edited /etc/profile to look like:

# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
if [ "`id -u`" -eq 0 ]; then

[code]....

When i type env, it just shows: PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin It also shows JAVA_HOME, CLASSPATH and others were set up. Trying to get updatetool in glassfish usable for any user and during any session. I did the export command in a shell, and it worked, but not after closing the session. how to do environment variables.

View 3 Replies View Related

Debian Configuration :: Make Fn Keys Work Independently Of Environment

Jan 5, 2016

I want fn* keys working for all users in all DE/WM and at tty too. I want it even if nobody logged in. Is it possible? How to set it up?

I mean these keys:

toggle wifikbd backlight +/−screen backlight +/−enable/disable screentoggle screensenable/disable touchpadvolume controls

I understand that some of them may work only with Xorg (e.g. toggle screens), but screen and kbd backlight and volume may work at tty too (because I can change this from tty when xorg is down). I know how to do it all from the console, but I want to bind keys with actions.

E.g. I can change kbd backlight with dbus and attach this action to key in my wm config, but it is not what I want. I want to make it global. I don’t understand which layer may provide the functionality for all users. Now only two keys works as I expect: toggle wifi and toggle touchpad. I haven’t set it up, it works out of the box.

Asus N56VZ, Debian stretch.
Code: Select alluname -a
Linux isquabook 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1 (2015-05-24) x86_64 GNU/Linux

View 4 Replies View Related

Ubuntu Servers :: Completely Chroot Enviornoment Where Every Single Service Is In Chroot Mode (bind,mysql, Postfix)?

Jul 12, 2011

recently we decided to make our own panel (like Plesk or cPanel) but for Ubuntu and it will be licenced under GPL (like any other professional sofware).want to make a panel not only that fits our needs but also the needs of other system administrators and domain owners. We researched other panels and found out that non of them has security/look/ease of use in one package. Bad codig is another problem found in other panels.I made a short overwiev of what I think we have to have in the beginning.I Security :1. Completely chroot enviornoment where every single service is in chroot mode (bind,mysql, postfix, .... )2. Easily managed IPtables trough web-based interface. 3. Coding rules has to be strict.

II Software selection :
1. MTA - Postfix
2. POP - dovecot

[code]....

View 7 Replies View Related

Debian Multimedia :: How To Run X In Chroot

Apr 29, 2015

How to run X in chroot ?

View 3 Replies View Related

Debian :: Password Keyboard Layout In Chroot

Sep 18, 2015

I tried to install Debian on my MyBook Live NAS following this [URL] ..... I was as happy as a sandboy when the SSH login finally was reachable after the process which went through without any errors or problems. But thats not the end - my password is not accepted and so i can't login.

In more technical terms here's my question: I chrooted into a newly debootstrapped system and changed the password using simple 'passwd'. Having done that on another machine i could find out that there are no locales/keyboard settings applied. My guess is that in this case the default US(?) settings and the keyboard layout are used.

Not aware of any issue here i entered a password containing special characters like " and ! and @. After investigating further I found out that in the chroot environment my keyboard layout from the host is used, which is bad because i do not know what environment was set in the originally MyBook system. All the action was done via SSH using kitty.

Disassembly would be the last exit which i would like to avoid. What keyboard layouts are used in chroot without locales set AND which one is used in the openssh login prompt? Is there a way to enter the password in a <ALT> + x format?

View 1 Replies View Related

Debian :: Mount Devices In A Chroot Jail?

Apr 16, 2010

I would like to create a logon script, for specific user, under ssh connection, to backup several directories in a USB device; this backup will run when the device was plugged in and the user logs in server. My knowledge of linux isn't very deeply now, and some questions are in my head. I would like to make this in a chroot jail, and the user log in through ssh connection doesn't have to make nothing, the logon script will mount the USB device and make the backup (using rsync or whatever), and exit the ssh connection when it finish.

But the questions are:

- is possible to a user in a chroot jail mount a USB device?

- from this jail, the directories outside of the jail could be available or need to be bind or something for this task?

- it will be better to "jail" all the directories to backup, inside de chroot path (almost would be samba sharing for Windows clients)?

View 1 Replies View Related

Debian :: No Sound In Squeeze / Lenny Chroot

Jul 16, 2010

I recently reinstalled Debian. Previously I had sound working in schroot without a problem. I simply added the user to the audio group ran alsaconf and it worked.Alsaconf has been removed from squeeze so I tried from Lenny. Alsaconf installs but does not find the sound card in the schroot. In deed it seems to be looking for amd64 modules (those of the host system).

View 1 Replies View Related

Debian :: Restrict FTP Users To Home Folders (chroot)?

Feb 11, 2010

I have a debian-based ftp server running that I have created a few user accounts on. I will have clients uploading files to the server via ftp soon, and I need a way to restrict their access to only their home folders. I am not familiar with chroot, but from what I read, it can be used to restrict a user to their home folder, and that sounds perfect. How can I do this?

View 4 Replies View Related

Debian :: Chroot 32 Bits On Amd64 Debootstrap Error "Invalid Release File"

Feb 21, 2011

I am trying to build a chroot to have 32bits application on a amd64 arch. but when I try the debootstrap command i get this error that I am unable to get through; here it is: debootstrap --verbose --arch=i386 sid /var/chroot/sid-ia32 I: Retrieving Release E: Invalid Release file, no entry for main/binary-i386/Packages

then i tried this solution: [URL] and i progressed but stopped again at one error: E: can't find checksum for packages file.

View 2 Replies View Related

CentOS 5 :: Centos-approved Way To Handle Group Environment Configuration?

Mar 10, 2010

What's the centos-approved way to handle group environment configuration? Let's say there are users in, oh, 4 different groups. Let's use the usual suspects:

accounting
warehouse
admin
netadmin

and I want to set up environment variables and maybe some pathing that are specific to a given group. So that when 'joeblow', who is a member of group 'warehouse', logs in, the pathing and environment variables (and whatever else) that is needed for users in the 'warehouse' group is set up and configured.

What I was initially looking for was an /etc/groups.d, and in /etc/groups.d is

/etc/groups.d
accounting.sh
warehouse.sh
admin.sh
netadmin.sh

As part of the login process, the group memberships for the login username would be examined, and for each hit the respective /etc/groups.d/ script would be run. I'm not seeing anything like that, so I'm assuming centos uses some other mechanism, but I'm obviously not using the proper keyword mojo. Can someone point me to where this mechanism is described?

View 4 Replies View Related

Debian :: Cannot Add Environment Variable

Apr 27, 2015

I'm trying to add 2 new environment variables (Debian . I have created a "/etc/profile.d/java.sh" file and in it I have added these lines (and just for the record, I've also tried adding those line to the profile file with the same results as explained below).

Code: Select allexport XAPPLRESDIR=/usr/local/MATLAB/MATLAB_Compiler_Runtime/v83/X11/app-defaults

export LD_LIBRARY_PATH=/usr/local/MATLAB/MATLAB_Compiler_Runtime/v83/runtime/glnxa64:/usr/local/MATLAB/MATLAB_Compiler_Runtime/v83/bin/glnxa64:/usr/local/MATLAB/MATLAB_Compiler_Runtime/v83/sys/os/glnxa64:/usr/local/MATLAB/MATLAB_Compiler_Runtime/v85/runtime/glnxa64:/usr/local/MATLAB/MATLAB_Compiler_Runtime/v85/bin/glnxa64:/usr/local/MATLAB/MATLAB_Compiler_Runtime/v85/sys/os/glnxa64

The first variable "XAPPLRESDIR" is added just fine (I check by doing echo $XAPPLRESDIR). The second variable is not added. Here's what I discovered though, if I change the variable name to LD_LIBRARY_PATK (I change the word "path" into something else) then it works just fine... So how am I supposed to add this variable? I need it to be named just that...

View 1 Replies View Related

Debian :: Python 2.7 Can't See OS Environment Variables

Aug 23, 2015

I'm trying to compile Ardour on jessie amd64 using the Debian source code (there's already an ardour package but I want to use different compile options). I've applied the Debian patches and have all the required dependencies installed.

Scons quits with a KeyError message from python2.7 saying that os.environ['DEB_HOST_ARCH_OS'] is not defined.

Checking with 'dpkg-archtecture -l' shows that DEB_HOST_ARCH_OS=linux, but 'print os.environ["DEB_HOST_ARCH_OS"]' in python says that name 'os' is not defined. The scons script has 'import os' at the top so it should be seeing it.

How do I make this visible to python (I'm assuming this problem is specific to the jessie python2.7 installation and not python in general)?

View 1 Replies View Related

Debian :: Terminal In GUI Environment Not Launching

Aug 26, 2015

I got a problem with the terminal in GUI Environment after i upgraded it From debian 7 to 8 "it's not launching" ....

Root Terminal is Working....

View 3 Replies View Related

Debian Installation :: No Desktop Environment In CD 1?

Aug 12, 2015

I'm sure you will laugh at me, however I do have to ask : is there a desktop environment at all in Jessie installation CD 1 , I mean the one I've downloaded here [URL].... , and to be precise this one [URL].... .

I've installed it in a virtualbox thinking that I'd see a Gnome desktop (assuming it is the default one and seeing that nothing was specified in the CD name), but there is no graphical environment at all, it boots to a console: dpkg -l finds no desktop components and there is no default display manager in /etc/X11 (of course startx only gets me another terminal, probably xterm) .

It should not be a virtualbox issue because the LXDE version there runs OK, I'm just a bit puzzled that no desktop environment at all is apparently installed even if I'm positive that I've checked that option during the installation: I've installed this CD without a network connection, but nevertheless, if the installer says "install a desktop environment" that's what I'm expecting to find...

I don't remember such an issue with Wheezy, in fact I only used CD 1 and there was indeed a Gnome desktop after installation - it's not a big deal, I'd just like to know if this is normal.

View 10 Replies View Related

Debian :: Unable To Change Environment Variables

Dec 17, 2015

I installed debian 8 on a usb drive using this guide. I used a debian 8.2 64-bit image with mate. It has all worked as I wanted it to. However recently I needed to change the PATH variable, and create another environment variable. I have not been able to do neither. What I have tryed (from google):

1. adding "export PATH=$PATH:/xxxx/" to etc/profile or to /home/user/.profile
2. adding ":/xxxx/" to a point in /etc/profile where the PATH variable is set
3. creating a script in /etc/profile.d which run "export PATH=$PATH:/xxxx/"

(where xxxx is the the location i want to add)

View 7 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved